This post features solutions to fix 0xc00002e2 BSOD Error in Windows Server. This error is specific to Windows Server operating systems and can occur for several reasons. Fortunately, you can follow some simple suggestions to fix the error.
What causes 0xc00002e2 BSOD Error?
The error code 0xc00002e2 occurs when the Active Directory Domain Services role is removed from the domain controller. This can happen if you use tools like Dism.exe, Pkgmgr.exe, or Ocsetup.exe to remove the DirectoryServices-DomainController role. However, some other reasons this may occur are:
- Active Directory database corruption
- Domain controller failure
- Incorrect permissions
- Misconfigured security settings
Fix 0xc00002e2 BSOD Error in Windows Server
Follow these steps to fix 0xc00002e2 BSOD Error in a Windows Server:
In Windows Server 2008 R2 or Windows Server 2008
Press and hold Shift + F8 while you restart the server.
Click on Directory Services Repair Mode (DSRM) and log in with your DSRM account.
Validate the removal with the following command:
dism.exe /online /get-features
Add the DirectoryServices-DomainController role back to the server with the following command:
dism.exe /online /enable-feature /featurename:DirectoryServices-DomainController
Again, restart the server and select Directory Services Restore Mode.
You’ll have to apply a force removal parameter to remove the Active Directory Domain Services from the domain controller. Run the following command to do so:
dcpromo.exe /forceremoval
Once done, use the ntdsutil.exe or dsa.msc tool, and it will remove the domain controller metadata.
In Windows Server 2012 and later
Restart your device, select Directory Services Repair Mode, and log in using your DSRM password.
Validate the removed role by running the following command:
dism.exe /online /get-features
Now, run the following command to add the DirectoryServices-DomainController role back into the server:
dism.exe /online /enable-feature /featurename:DirectoryServices-DomainController
Again, restart the Directory Services Restore Mode again, and log in using your DSRM account.
Once done, apply a -ForceRemoval parameter to remove Active Directory Domain Services using Server Manager or Windows PowerShell. To do so, run the following command:
Uninstall-AddsDomaincontroller -ForceRemoval
Lastly, remove the domain controller metadata using the ntdsutil.exe or dsa.msc tool.
Read: How to enable Automatic .NET Updates in Windows Server
I hope this suggestions help you.
What is error code 0xc00002e2 in Windows Server?
The 0xc00002e2 BSOD Error in Windows Server indicates an issue with accessing, reading, or trusting Active Directory contents within the machine. It can prevent users from accessing the server and network resources. To fix this, check the health of your Active Directory infrastructure.
How do I use Directory Services Restore Mode?
Restart the domain controller and press F8 once the BIOS information appears. Here, select Directory Services Restore Mode, and hit Enter. Now, log in using your Directory Services Restore Mode password. Once done, open cmd and click on Ok.