Install the Active Directory role, test the settings, then create the forest. The server restarts as the school's first domain controller.
Promotion refuses to run if the local Administrator has a blank or weak password. This password becomes the domain Administrator's, so make sure it matches the one in your password manager.
Install the role
This adds the Active Directory software and its admin tools. Nothing changes on the network yet.
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
Test the settings
Run the same settings through the test command first. It checks every prerequisite and changes nothing.
$dsrm = Read-Host "DSRM password" -AsSecureString Test-ADDSForestInstallation ` -DomainName "ad.contoso.com" ` -DomainNetbiosName "CONTOSO" ` -ForestMode "Win2025" ` -DomainMode "Win2025" ` -InstallDns ` -SafeModeAdministratorPassword $dsrm
Look for Status: Success. Two warnings are normal: one about the security of older cryptography, and one saying a DNS delegation cannot be created.
Create the forest
Install-ADDSForest ` -DomainName "ad.contoso.com" ` -DomainNetbiosName "CONTOSO" ` -ForestMode "Win2025" ` -DomainMode "Win2025" ` -InstallDns ` -SafeModeAdministratorPassword $dsrm ` -Force
| Setting | What it does |
|---|---|
| DomainName | The full AD name from your plan. |
| DomainNetbiosName | The short name staff type as CONTOSO\name. |
| ForestMode, DomainMode | The functional level from your plan. |
| InstallDns | Installs DNS and makes this server the school's DNS server. |
| SafeModeAdministratorPassword | The DSRM password. |
| Force | Skips the "are you sure" prompt. The test in step 2 covered that. |
The server restarts by itself. The first sign-in afterwards shows "Applying computer settings" for a few minutes.
Prefer the graphical tools?
Enter the same values. The wizard's last page has a View script button that shows the same PowerShell as above.
Sign in as the domain
Sign in as CONTOSO\Administrator, then confirm the domain exists.
Get-ADDomain | Select-Object DNSRoot, NetBIOSName, DomainMode Get-ADDomainController | Select-Object HostName, IPv4Address, IsGlobalCatalog Get-DnsClientServerAddress -AddressFamily IPv4
Done when
You see ad.contoso.com, CONTOSO and Win2025, CON-DC-01 on 10.0.20.10 with IsGlobalCatalog True, and DNS on the network card now points at 127.0.0.1.


