“No space left on device” error on empty drives

When you try to copy files from your hard drive to an external device such as an external hard drive or USB stick, you may get an error message saying that there is no free space left on your device, even though you just deleted everything to make room. This is most likely due to ... Read more

How to Create NIC Teaming With PowerShell

NIC Teaming with PowerShell

This short guide shows you step-by-step on how to create NIC teaming with Windows PowerShell. Step 1. Open PowerShell with elevated privileges Step 2. Execute the following command, new-NetLBFOTeam [TEAMNAME] “[NIC1]”, “[NIC2]” [TEAMNAME] the name of team of network adapters. [NIC1] the name of first NIC adapter. [NIC2] the name of second NIC adapter. Example: ... 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

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

How to Set Date and Time Using PowerShell on Windows

PowerShell set Date and Time

To change or adjust the system date and time using PowerShell, use the following steps: Step 1: Log in to your Windows desktop or server with a user that has administrative privileges. Step 2: Open PowerShell, type the following command and then press enter from your keyboard: set-date -date "06/06/2022 18:53" Make sure to change ... 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

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

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