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.
More »

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.
More »

Powershell: Function Pointer

Hi,

Powershell provides also the ability to use function pointers such as C or C++.

Define your functions
More »

Windows: Cleanup files from WSUS which are no longer needed

Hi,

the content of an WSUS Server crows every month for several GiBytes because WSUS does held all files which has the approval state “install”.
More »

Powershell: Method not found: ‘System.Threading.Tasks.Task System.Threading.Tasks.Task.Run(System.Action)’

Hi,

when you tried to start powershell and the window opens and closes immediately.

Open a cmd and start powershell by calling powershell.exe
More »

Original Theme by Schiy · Powered by WordPress