How to Execute PowerShell Scripts Without Pop-Up Window

PowerShell scripts are hard to run without any kind of popup. Without using the small workaround that I will show you here, it may even be impossible. Even if you specify the -WindowStyle Hidden switch - this will only result in the PowerShell window blinking up for a split second and disappearing afterward. You can ... Read more

How to Comment Out Code in PowerShell Script

PowerShell Code Commenting

This guide gives you an overview of code commenting options in PowerShell. Just like any other programming language, you can comment out code in a PowerShell script for documentation purposes. Single-line comments in PowerShell To comment out a single line, put '#' in the beginning: Multiline Comments in PowerShell To comment out multiple lines, put ... Read more

[Solved] Verification of prerequisites for Domain Controller promotion failed.

You may get the following error while promoting a machine to a Windows domain controller. Below is the complete error message with its solution. The Error Message: Verification of prerequisites for Domain Controller promotion failed. The local Administrator account becomes the domain Administrator account when you create a new domain. The new domain cannot be ... Read more

How to Get a List of Windows PowerShell Modules that can be Imported

Modules are collections of cmdlets that are stored in the path %WINDIR%\System32\WindowsPowerShell\. Get a List of Windows PowerShell Modules Now execute the following command to display the location of each directory where these modules are stored at your computer: write-host "$PSModulePath" You can get a list of all available modules on your Windows system by ... Read more

Switch between English and German keyboard layouts on German keyboards (Windows)

Switch Windows Keyboard Layout

German keyboards are usually QWERTZ keyboards, named after the first row of letters to the first, which differs from the English layout, which is called QWERTY. You can switch between these two using the key combination Alt + Shift. This switch can be the cause of your keyboard behaving strangely - for example, if you ... Read more