Step by Step Guide create Active Directory Sites using GUI and Powershell

Sure, here’s a step-by-step guide on how to create Active Directory Sites using both the GUI and PowerShell:

Creating Sites using the GUI:

Step 1: Open the Active Directory Sites and Services console

To open the Active Directory Sites and Services console, you can follow these steps:

  1. Click on the Start menu, type “dsa.msc” in the search bar, and hit Enter.
  2. The Active Directory Sites and Services console will open.

Step 2: Create a new Site

To create a new site, you can follow these steps:

  1. Right-click on the “Sites” container, and select “New Site”.
  2. In the “New Object – Site” dialog box, enter the name of the new site and click “OK”.
  3. Select the new site and click “Properties” to configure additional settings.

Step 3: Create a Subnet for the new Site

To create a subnet for the new site, you can follow these steps:

  1. Right-click on the new site, and select “New Subnet”.
  2. In the “New Object – Subnet” dialog box, enter the IP address and subnet mask for the new subnet, and select the site to associate with the subnet.
  3. Click “OK”.

Step 4: Associate Domain Controllers with the new Site

To associate domain controllers with the new site, you can follow these steps:

  1. Right-click on the new site, and select “Properties”.
  2. Click on the “Servers” tab, and click “Add”.
  3. Select the domain controller(s) to associate with the site, and click “OK”.

Creating Sites using PowerShell:

Step 1: Open PowerShell

To open PowerShell, you can follow these steps:

  1. Click on the Start menu, type “PowerShell” in the search bar, and hit Enter.
  2. PowerShell will open.

Step 2: Create a new Site

To create a new site using PowerShell, you can use the New-ADReplicationSite cmdlet, as shown below:





New-ADReplicationSite -Name "Site1" -Description "Site 1 Description" -Location "New York"

Step 3: Create a Subnet for the new Site

To create a subnet for the new site using PowerShell, you can use the New-ADReplicationSubnet cmdlet, as shown below:





New-ADReplicationSubnet -Name "Subnet1" -Site "Site1" -Location "New York" -IPAddress "192.168.1.0/24"

Step 4: Associate Domain Controllers with the new Site

To associate domain controllers with the new site using PowerShell, you can use the Move-ADDirectoryServer cmdlet, as shown below:





Move-ADDirectoryServer -Identity "DC1" -TargetPath "CN=NTDS Settings,CN=Server2,CN=Servers,CN=Site1,CN=Sites,CN=Configuration,DC=domain,DC=com"

These are the basic steps for creating Active Directory Sites using both the GUI and PowerShell. Keep in mind that there are additional configuration options available in both interfaces, such as configuring site links and replication schedules, which can further optimize your AD environment.

Author: tonyhughes