Add / remove domain controller via Powershell

Add DC :
Install-ADDSDomainController -DomainName <domain.name>  -NoRebootOnCompletion

Remove DC :
Uninstall-ADDSDomainController
Let server reboot, now as a member server
Remove AD DS Services :
Uninstall-WindowsFeature AD-Domain-Services

Leave a Comment