How to Configure DHCP Failover in Windows Server 2016

DHCP failover is used to load balance client requests among two DHCP servers and provides fault tolerance. If one of the DHCP servers is down, then the other keeps serving IP addresses to clients. DHCP failover can be configured in the following two ways: Load balance mode (Both DHCP servers are active and the load is shared among the two). ... Read more

Partitions in Active Directory

The active directory database is stored in a single NTDS.dit file which is logically separated into the following partitions: Schema Partition Configuration Partition Domain Partition Application Partition Schema Partition There is only one schema partition per forest and it is stored in all DCs of the forest.  It contains the definition of objects and rules for their ... Read more

How to Send an Email from Gmail Account Using PowerShell

You can send an email from your Gmail account using only a single command in PowerShell. There are several ways to achieve that, however, this tutorial uses the Send-MailMessage cmdlet. Send-MailMessage cmdlet has following commonly used paramters: –Attachments string The full path and filenames to be attached with an email. –Bcc string Email addresses that you would like to ... Read more

How to Downgrade Forest and Domain Functional Levels

Downgrade the Forest Functional Level Step 1. Open PowerShell with elevated privileges. Step 2. Execute the following command, replace the identity with your domain name and the forestmode with the level you want to downgrade to. Set-ADForestMode –Identity “CANITPRO.com” –ForestMode Windows2008Forest In the above example, I have downgraded the forest functional level to Windows Server 2008. ... Read more

How to Import and Export Virtual Machines in Windows Hyper-V Server

You can use the import and export feature to create a new virtual machine with the exact same configuration of an existing VM in Hyper-V. You can import the VM files on a new server and create as many VMs as you like. Export Hyper-V Virtual Machine Step 1. Open Hyper-V Manager. Step 2. Right-click ... Read more

Fixed, Dynamically Expanding, and Differencing Disks in Hyper-V

There are three types of virtual hard disks in Hyper-V. Those three types are: Fixed size Dynamically expanding Differencing I will explain each type with pros and cons in the article below. Fixed size Disk When you create a fixed-size virtual hard disk, space is reserved beforehand. Suppose you created a VHDX of 200 GB, ... Read more

Error when Executing a PowerShell Script for the First Time

When you are executing a PowerShell script for the first time you may encounter the following error: .... cannot be loaded because running scripts is disabled on this system. Why did this happen: PowerShell Execution Policies PowerShell has four execution policies for executing the script. Those four policies are described below: Restricted This is a default policy. ... Read more

How to Fix WinRm Firewall Exception Rule When Enabling PS Remoting

When you are enabling PowerShell remoting using the command Enable-PSRemoting, you may get the following error because your system is connected to the network trough a Wi-Fi connection. PS C:\WINDOWS\system32> winrm quickconfig The following changes must be made: Start the WinRM service. Set the WinRM service type to delayed auto start. Make these changes [y/n]? y ... Read more