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

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 Configure a Scheduled Task Item using Group Policy

Windows Scheduled Tasks

Sometimes you may be required to automatically shut down domain-joined client computers or you may be required to run a script at some specific time. Group policies and task scheduling can help you in such situations. This tutorial will help you to learn how to schedule a task using group policies in the domain controller on ... 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 Find Out Specifications of Server Using PowerShell

Get Server specs using PowerShell

When you are running a Windows server core version and you need to find out the specs of your server then this tutorial will show you how to do that with a small PowerShell script. Get Server Details with PowerShell Step 1. Open PowerShell with elevated privileges. Step 2. Execute the following two commands (as ... 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

How to Check if a Disk Uses GPT or MBR on Windows

Windows: GPT or MBR Partition Table

There are different ways to store the partition table on a drive. The most widely used methods are GPT (Guid Partition Table) and MBR (Master Boot Record). This article shows you how to check your disk is using GPT or MBR. Check partition table type using the GUI Step 1. Press Windows key + X ... Read more

Are there Restore Points in Windows Server 2016?

There is no restore point feature in Windows Server 2016. You have to work with Windows Server Backup feature which can create backup including system state. If you are working with a professional virtualization solution such as VMware, you can use the virtualization tool to easily create snapshots. Restore point feature was removed from Windows ... Read more