Guide

Finish the domain setup

Four last settings make the domain ready for accounts: the sign-in suffix, the Recycle Bin, your network subnets and a first backup.

20 minutesRun as CONTOSO\Administrator on CON-DC-01
What improves

The domain is ready for accounts, with a safety net.

Why it matters

Without these, deleted accounts are hard to restore and sign-in names do not match email addresses.

How you do it

Add the sign-in suffix, turn on the Recycle Bin, add your subnets and take a first backup.

Every name, address and value in this guide is an example. Replace them with your own.

Add the sign-in suffix

This lets you give accounts names like doej@contoso.com that match their Microsoft 365 sign-in.

CON-DC-01
Set-ADForest -Identity "ad.contoso.com" -UPNSuffixes @{Add="contoso.com"}
(Get-ADForest).UPNSuffixes

Turn on the AD Recycle Bin

Without it, a deleted account comes back without its groups and settings. With it, you restore the account exactly as it was for 180 days.

CON-DC-01
Enable-ADOptionalFeature -Identity "Recycle Bin Feature" -Scope ForestOrConfigurationSet -Target "ad.contoso.com" -Confirm:$false
You cannot turn it off again

That is fine. No school needs to.

Tell AD about your networks

AD sends each device to a nearby DC by matching its address to a subnet. Give the default site a clear name, then add each network from your plan.

CON-DC-01
Get-ADReplicationSite -Identity "Default-First-Site-Name" | Rename-ADObject -NewName "Contoso-Main"

$site = "Contoso-Main"
New-ADReplicationSubnet -Name "10.0.10.0/24" -Site $site -Description "VLAN 10 Management"
New-ADReplicationSubnet -Name "10.0.20.0/24" -Site $site -Description "VLAN 20 Domain controllers"
New-ADReplicationSubnet -Name "10.0.30.0/24" -Site $site -Description "VLAN 30 Servers"
New-ADReplicationSubnet -Name "10.0.50.0/24" -Site $site -Description "VLAN 50 Devices"

Take a first backup

A system state backup holds AD, DNS and the server's settings. Keep it on a second disk, not the system drive.

CON-DC-01
Install-WindowsFeature Windows-Server-Backup
wbadmin start systemstatebackup -backupTarget:E: -quiet    # E: is a separate backup disk

Run the health check

CON-DC-01
dcdiag /q
netdom query fsmo

dcdiag /q prints only errors, so no output is good. netdom should list CON-DC-01 against all five roles.

Done when

Check

The forest lists contoso.com as a UPN suffix, the Recycle Bin shows as enabled in Get-ADOptionalFeature -Filter *, four subnets appear in Get-ADReplicationSubnet -Filter *, and the backup finished. Next: Add a second domain controller.

Your progress is kept in this browser only.