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

How to Append Data to a Text File Using PowerShell

PowerShell Append Text To File

You can use the PowerShell add-content cmdlet to append data to a text file. Here is an example of how to use the add-content PowerShell cmdlet to append text to a file on Windows. We'll also explain the command-line options that you can use. Powershell add-content example Step 1. Open PowerShell with elevated privileges Step 2. Execute ... Read more

PowerShell: How to Create an AD User in a Specific OU

You can create a Windows Active Directory (AD) user in a specific OU by using the -path parameter in 'New-ADuser' PowerShell command. The following example will create a user in the 'students' OU of the 'pel.com' Active Directory domain. New-ADUser -Name “Karim Buzdar" -GivenName Karim -Surname Buzdar -SamAccountName kbuzdar -UserPrincipalName kbuzdar@pel.com -path "OU=students, DC=pel, DC=com

Windows Powershell – “Running scripts is disabled on this system”


Powershell scripts can be run on any Windows server or desktop as long as they are run from the ISE by pushing the green play button. As soon as you want to run it from the cmd or the desktop file you'll get this error: script1.ps1 cannot be loaded because running scripts is disabled on ... Read more

How to Exclude a User or Computer from Group Policy Object in Windows Server

Group Policy

When you apply a group policy on a container or OU, it applies to all users or computers in that container. However, you can exclude single or multiple users or containers from the policy applied. This tutorial is written to show you how to exclude a single user from a group policy object. Exclude a ... Read more

How to Create a PowerShell Session on a Remote Computer

PowerShell Remote Session

A session is required to execute PowerShell commands or scripts on a remote computer. This is also known as PowerShell remoting and it is just like an SSH session to an operating system. There are several ways to create a PowerShell session. I'll list one of the easiest methods here. These steps work on Windows ... Read more

Four Ways to Create a Directory with PowerShell

This tutorial shows you for different methods to create a directory with the help of PowerShell. First, open the PowerShell console with administrative privileges. Then use one of the following four ways. Creating a Directory by using PowerShell Method 1: Use the new-item command new-item <path of directory suppose c:\dir1> -itemtype directory Method 2: Use ... Read more

How to Create Multiple Hyper-V Virtual Machines Using PowerShell

Hyper-V PowerShell

Creating multiple Hyper-V virtual machines using Hyper-V manager is not a quick method. The quickest and time-saving method is to create them via Windows PowerShell. This tutorial has been written to show you how to create three Hyper-V virtual machines with a PowerShell script. Create Multiple Hyper-V Virtual Machines Using PowerShell Step 1. Open notepad editor ... Read more

How to Read a File using PowerShell

If you are working as an admin on Windows Core Server and want to check the contents of a file, you can execute the following command: get-content C:\testfile.txt This command will display the contents of the file using PowerShell. To save the contents in a variable, you can execute: $FileContent = get-content C:\testfile.txt To read the ... Read more