-
At a command prompt, type the following command, and then press ENTER:
dcpromo /forceremoval
If the domain controller hosts any operations master (also known as flexible single master operations or FSMO) roles, or if it is a Domain Name System (DNS) server or a global catalog server, warnings appear that explain how the forced removal will affect the rest of the environment. After you read each warning, click Yes. If you want to suppress the warnings in advance of the removal operation, you must force the removal of Active Directory Domain Services (AD DS) by using an answer file. In the answer file, specify the parameter demotefsmo=yes.
-
On the Welcome to the Active Directory Domain Services Installation Wizard page, click Next.
-
On the Force the Removal of Active Directory Domain Services page, review the information about forcing the removal of AD DS and metadata cleanup requirements, and then click Next.
-
On the Administrator Password page, type and confirm a secure password for the local Administrator account, and then click Next.
-
On the Summary page, review your selections. Click Back to change any selections, if necessary.
To save the settings that you selected to an answer file that you can use to automate subsequent AD DS operations, click Export settings. Type a name for your answer file, and then click Save.
When you are sure that your selections are accurate, click Next to remove AD DS.
-
You can either select the Reboot on completion check box to have the server restart automatically or you can restart the server to complete the removal of AD DS when you are prompted to do so.
-
Open Server Manager. Click Start, point to Administrative Tools, and then click Server Manager.
-
In Roles Summary, click Remove Roles.
-
If necessary, review the information on the Before You Begin page, and then click Next.
-
On the Remove Server Roles page, clear the Active Directory Domain Services check box, and then click Next.
-
On the Confirm Removal Selections page, click Remove.
-
On the Removal Results page, click Close, and then click Yes to restart the server