Tag Archives: powershell

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

VMware: Installing PowerCli

Hi,

VMware does not longer provide Setups for installing PowerCli.

If you want to use the latest version of the PowerCli you have to install the modules from a NuGet Repository. This requires at least Version 5 of the powershell.
Continue reading VMware: Installing PowerCli

Windows: Execute a Script at shutdown

Hi,

like system startup it is not possible to execute a script at system shutdown with the task scheduler. It must be configured with a group policy. You can choose the GUI way are set it by script:

Let us assume the Script is C:\scripts\shutdownEv.cmd.
Continue reading Windows: Execute a Script at shutdown

Powershell: Wrong exit code

Hi,

you start a powershell script from cmd and want to return an exit not equal to 0 but %ERRORLEVEL% is set to 0.
Continue reading Powershell: Wrong exit code

Powershell: En- and Decrypt string with AES256

Hi,

if you have the requierment to encrypt strings in Powershell the .NET Framework offers some classes for this case. This is a symmetric encryption. Receiver and Sender uses the same Password/Key to en- and decrypt the message.
Continue reading Powershell: En- and Decrypt string with AES256