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 the "Manage" menu
650) this.width=650; "title=" 1.png "src=" https://s4.51cto.com/wyfs02/M01/96/17/ Wkiom1kc-brrwyoiaakbehqawsu787.png-wh_500x0-wm_3-wmp_4-s_2975444115.png "alt=" Wkiom1kc-brrwyoiaakbehqawsu787.png-wh_50 "/>
Do the following in turn
650) this.width=650; "title=" 2.png "src=" https://s2.51cto.com/wyfs02/M01/96/17/ Wkiol1kc-cih0flcaakgwqxuuls916.png-wh_500x0-wm_3-wmp_4-s_824999141.png "alt=" Wkiol1kc-cih0flcaakgwqxuuls916.png-wh_50 "/>
Select Delete Adds. Then select "Demote this domain controller"
650) this.width=650; "title=" 3.png "src=" https://s1.51cto.com/wyfs02/M01/96/17/ Wkiol1kc-dezgdw1aalxeftcjl8144.png-wh_500x0-wm_3-wmp_4-s_1515320246.png "alt=" Wkiol1kc-dezgdw1aalxeftcjl8144.png-wh_50 "/>
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.
650) this.width=650; "title=" 4.png "style=" Float:none; "src=" https://s2.51cto.com/wyfs02/M02/96/17/ Wkiol1kc-ftsiw9vaajvsr6_wdw119.png-wh_500x0-wm_3-wmp_4-s_2312304691.png "alt=" wKioL1kc-fTSIW9vAAJvSR6_ Wdw119.png-wh_50 "/>
650) this.width=650; "title=" 5.png "style=" Float:none; "src=" https://s4.51cto.com/wyfs02/M00/96/18/ Wkiom1kc-fxqtajdaajmfpjzeue465.png-wh_500x0-wm_3-wmp_4-s_293335227.png "alt=" Wkiom1kc-fxqtajdaajmfpjzeue465.png-wh_50 "/>
650) this.width=650; "title=" 6.png "style=" Float:none; "src=" https://s4.51cto.com/wyfs02/M02/96/17/ Wkiol1kc-faspkraaai3qnjfrsg083.png-wh_500x0-wm_3-wmp_4-s_1451497809.png "alt=" Wkiol1kc-faspkraaai3qnjfrsg083.png-wh_50 "/>
650) this.width=650; "title=" 7.png "style=" Float:none; "src=" https://s3.51cto.com/wyfs02/M00/96/18/ Wkiom1kc-fft-tdvaaiy_-ngvma584.png-wh_500x0-wm_3-wmp_4-s_2294022947.png "alt=" wKiom1kc-ffT-tdvAAIy_- Ngvma584.png-wh_50 "/>
650) this.width=650; "title=" 8.png "style=" Float:none; "src=" https://s3.51cto.com/wyfs02/M00/96/17/ Wkiol1kc-fjbcpxgaaio_8yl3j4085.png-wh_500x0-wm_3-wmp_4-s_453998064.png "alt=" Wkiol1kc-fjbcpxgaaio_ 8yl3j4085.png-wh_50 "/>
Wait for completion.
Second, use the script to unload the Active Directory domain service.
Run the following script file
#
# Windowspowershell script for AD DS deployment
#
Import-moduleaddsdeployment
Uninstall-addsdomaincontroller '
-demoteoperationmasterrole: $true '
-ignorelastdnsserverforzone: $true '
-lastdomaincontrollerindomain: $true '
-removednsdelegation: $true '
-removeapplicationpartitions: $true '
-force: $true
This article is from the "Kaleidoscope K" blog, be sure to keep this source http://dengw.blog.51cto.com/7143894/1926875
AD Domain Server Uninstall---windowsserver2012r2