Uninstall of the Active Directory domain service for Windows Server 20122012-07-11 06:27:35Tags: Windows Server 2012 Active Directory Domain Services uninstall original works, allow reprint, please be sure to use hyperlinks in the form of the original source of the article, author information and this statement. Otherwise, the legal liability will be investigated. http://ycrsjxy.blog.51cto.com/618627/926716
Since Windows Server 2012 no longer supports Dcpromo, for uninstall of Active Directory Domain Services, we can do it in graphical state or through PowerShell scripting.
First, the graphics state.
1. Select "Remove roles and Features" under "Manage" menu
Do the following in turn
Select Delete Adds. Then select "Demote this domain controller"
When there are more than one DC in the ad, if you cannot contact other DCs, you can select "Force Delete this domain controller", this option is quite the previous Dcpromo/forceremoval command.
Wait for completion.
Second, use the script to unload the Active Directory domain service.
Run the following script file
#
# Windows PowerShell scripts for AD DS deployment
#
Import-module addsdeployment
Uninstall-addsdomaincontroller '
-demoteoperationmasterrole: $true '
-ignorelastdnsserverforzone: $true '
-lastdomaincontrollerindomain: $true '
-removednsdelegation: $true '
-removeapplicationpartitions: $true '
-force: $true
Uninstall of the Active Directory domain service for Windows Server 2012