Category Archives: Windows Scripts

Sample Script to manage Windows

Windows: Change a LAN Interface Networkprofile to private

Hi

when the network profile of a Windows PC is set to public, there are firewall restrictions enabled which could prevent accessing the Computer from network. For example Windows Remoting.

Unfortunately in some cases the profile cannot be switch by the Network Gui(s) of windows.
Continue reading Windows: Change a LAN Interface Networkprofile to private

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