Domain controller does not start, c00002e2 error occurs, or "Choose an option" is displayed

Symptoms
A domain controller does not start or does not display the logon screen. After you restart the domain controller and watch the start process, you notice the following symptoms, according to your operating system.

Windows Server 2008 R2 or Windows Server 2008
  1.  At startup, the server experiences a Stop error and briefly displays the following error message:
    STOP: c00002e2 Directory Services could not start because of the following error:

    The specified procedure could not be found

    Error status: 0xc000007a.
  2. The server then switches to the startup menu for recovery or for a regular startup.
Windows Server 2012

At startup, the server switches to the Choose an option menu that offers to continue or troubleshoot.
Cause
An administrator used Dism.exe, Pkgmgr.exe, or Ocsetup.exe to remove the DirectoryServices-DomainController role. These servicing tools do not validate whether the computer is a domain controller.
Resolution
Note These steps assume that you have other working domain controllers, and you only want to remove Active Directory Domain Services from this server. If you do not have other working domain controllers, and this is the only domain controller in the domain, you must restore an earlier system state backup.

Windows Server 2008 R2 or Windows Server 2008

  1. Restart the server while you hold down Shift+F8.
  2. Select Directory Services Repair Mode (DSRM), and then log on by using the DSRM account.
  3. Validate that the role was removed. For example, to do this on Windows Server 2008 R2, use the following command:
    dism.exe /online /get-features
  4. Add the DirectoryServices-DomainController role back to the server. For example, to do this on Windows Server 2008 R2, use the following command:
    dism.exe /online /enable-feature /featurename:DirectoryServices-DomainController
  5. Restart and select Directory Services Restore Mode again.
  6. Apply a /forceremoval parameter to remove Active Directory Domain Services from the domain controller. To do this, run the following command:
    dcpromo.exe /forceremoval
  7. To remove the domain controller metadata, use the ntdsutil.exe or dsa.msc tool.

Windows Server 2012
  1. From the Choose an option menu, select Troubleshoot, click Startup Settings, and then click Restart.
  2. Select Directory Services Repair Mode (DSRM), and then log on by using the DSRM password.
  3. Validate that the role was removed. To do this, use the following command:
    dism.exe /online /get-features
  4. Add the DirectoryServices-DomainController role back to the server. To do this, use the following command:
    dism.exe /online /enable-feature /featurename:DirectoryServices-DomainController
  5. Restart, select Directory Services Restore Mode again, and log on by using the DSRM account.
  6. Use Server Manager or Windows PowerShell, and apply a -ForceRemoval parameter to remove Active Directory Domain Services from the domain controller. To do this, run the following command:
    Uninstall-AddsDomaincontroller -ForceRemoval
  7. To remove the domain controller metadata, use the ntdsutil.exe or dsa.msc tool.
More information
Always use Server Manager or the ServerManager Windows PowerShell module to remove the Active Directory Domain Services role binaries. These tools validate whether a server is an active domain controller and do not let you remove critical files.

For more information about how to remove domain controller metadata, go to the following Microsoft TechNet website:

Clean Up Server Metadata
http://technet.microsoft.com/en-us/library/Cc816907.aspx

If this is the only server domain in the domain, do not remove the Active Directory Domain Services from the server. Instead, restore its system state from the most recent backup.
Properties

Article ID: 2737463 - Last Review: 09/12/2012 19:32:00 - Revision: 11.0

Windows Server 2012 Datacenter, Windows Server 2012 Standard, Windows Server 2008 Datacenter, Windows Server 2008 Enterprise, Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Enterprise, Windows Server 2008 R2 Standard, Windows Server 2008 Standard

  • KB2737463
Feedback