Tag Archives: powershell

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

Advertisment to support michlstechblog.info

Powershell: Function Pointer

Hi,

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

Define your functions
Continue reading Powershell: Function Pointer

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”.
Continue reading Windows: Cleanup files from WSUS which are no longer needed

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
Continue reading Powershell: Method not found: ‘System.Threading.Tasks.Task System.Threading.Tasks.Task.Run(System.Action)’

Powershell: Searching in arrays

Hi,

this is a really often requiered task in powershell. Here are some examples.
Continue reading Powershell: Searching in arrays