How to fix a corrupt active directory database on Windows
Authored by: Support.com Tech Pro Team
1. Introduction
The Active Directory is a database that connects users with the network resources they need. However, a corrupt active directory database can spell disaster for everyone because it will affect all the users who rely on it.
In this guide, you'll learn how to fix a corrupt active directory database on Windows.
2. How to Enter
1. Check Microsoft Active Directory database problems
Reboot the server and press the F8 key and choose Directory Services Restore Mode.
Check the location of the Winnt\NTDS folder and verify its permissions.
Make sure that the following folder is shared:Winnt\Sysvol\Sysvol
Look inside the Sysvol folder and see if there is a folder labeled with the name of the domain.
Press the Windows + X keys and select PowerShell (Admin).
Type the following commands and hit Enter after each one:
NTDSUTIL Files Info
Rename the edb.chk file and try to boot to Normal mode.
If this method doesn’t allow you to boot into Normal mode, follow the next step.
2. Check the integrity of your database
Reboot into Directory Service Restore mode again.
Inside the Command Prompt type the following command: ESENTUTL /g "<path>\NTDS.dit" /!10240 /8 /v /x /o
Replace <path> with the actual path of the file. The default one isC:\Winnt\NTDS\ntds.dit
The results of this command will tell you if the database is corrupted.
To recover the database, type these commands and press Enter after each one:
NTDSUTIL Files Recover
If this procedure shows you an error message type Quit, then use the following command (replace <path> with the actual path):ESENTUTL /p "<path>\NTDS.dit" /!10240 /8 /v /x /o
Delete all log files inside the NTDS directory but do not move or modify the ntds.dit file.
Inside the Command Prompt, type the following commands to check the files’ integrity:
NTDSUTIL Files Integrity
If the check is completed successfully type these commands one by one and press Enter after each one to run them:
NTDSUTIL Semantic Database Analysis Go
The results will tell you that the Analysis process has been completed successfully.