Category Archives: Windows Scripts

Sample Script to manage Windows

Excel: Does not start within a schedule task

Hi,

if you have already created a script and within you do some things with Excel by DCOM Excel.Application the script runs well as a user logged to the Desktop but not within a schedule task started by the same user.

Continue reading Excel: Does not start within a schedule task

Advertisment to support michlstechblog.info

Windows: Open search index option GUI

Hi,

search index GUI is not an exe file. The GUI resides in an DLL. To open it you have to call it by rundll32

Continue reading Windows: Open search index option GUI

Powershell: Passing an array to a script at command line

Hi,

starting point is a simple powershell shell script testarray.ps1:
Continue reading Powershell: Passing an array to a script at command line

Powershell: Determine the image type (x64/x86) of an exe file

Hi,

based on this stackoverflow post I’ve written a powershell function to determine the image type of an Windows executable. The Powershells System.IO.FileSystemInfo type does not provide such an info.
Continue reading Powershell: Determine the image type (x64/x86) of an exe file

Powershell: md5sum and sha256sum Functions

Hi,

verifing of a file is often done by builting an MD5 or an sha256 hash over it.

Powershell has no “builtin” functions for this purposes.

So I wrote some 🙂
Continue reading Powershell: md5sum and sha256sum Functions