[Windows Server] Error 0xc00002e2 on Domain Controllers after Restarting

Facing this after rebooting your Domain Controller ?

This error ( Error code 0xc00002e2) indicates that the Active Directory database (NTDS.DIT) is corrupt and will only be seen on Systems with Active Directory roll installed.

Here is the way to resolve the issue.

1) Boot into Startup Recovery and Select Troubleshoot

2) Select Startup Settings

3) Hit Restart

4) Boot into Directory Services Restore Mode, Login to server using your Directory Services Restore Password

5) Rename or delete or move the log files in C:\Windows\NTDS\ to another location

6) Restart the server and boot normally. The issue should be resolved by now.

If the Error still persist. Boot into Directory Services Repair mode again and perform the below

Run CMD and enter the following commands to start repairing the database

esentutl /p "c:\windows\ntds\ntds.dit"

Hit OK

Once Completed

After rebooting the issue should be resolved.