Uninstall-ADDSDomainController

删除AD Domain Controller  use powershell_服务器删除AD Domain Controller  use powershell_服务器

删除AD Domain Controller  use powershell_服务器_03删除AD Domain Controller  use powershell_服务器_03

完成后,会自动重起。


删除最后一台域控:

Uninstall-ADDSDomainController `

-DemoteOperationMasterRole:$true `

-IgnoreLastDnsServerForZone:$true `

-LastDomainControllerInDomain:$true `

-RemoveDnsDelegation:$true `

-RemoveApplicationPartitions:$true `

-Force:$true