Tag Archives: windows

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

Windows: Reset WSUS and recreate SUSDB

Hi,

here are the steps if you have installed WSUS on Server 2012R2 on the Windows Internal Database to reset the Database and WSUS itself.

Continue reading Windows: Reset WSUS and recreate SUSDB

Windows: Join a workgroup or domain from command line

Hi,

there are two ways to join or leave a domain. The netdom command or the Powershell Command lets add-computer and remove-computer.
Continue reading Windows: Join a workgroup or domain from command line

Windows: Decode Win32 Error codes

Hi,

if you have a Windows Errorcode like 0xc000021a and want to decode it to a human readable format you can use certutil.
Continue reading Windows: Decode Win32 Error codes

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