Uninstall of the Active Directory domain service for Windows Server 2012

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.