Category Archives: Windows Scripts

Sample Script to manage Windows

Powershell: Transfer Modules to an offline PC

Hi,

in these days powershell modules are often installed from a (NuGet) Repository and not by a Setup program.

In companies may exists computers which does not have an active internet connection.

But how to install the modules on these devices?
Continue reading Powershell: Transfer Modules to an offline PC

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

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