Knowledge Base

Windows Server: Active Directory database repair after Domain Controller failure

This article addresses Active Directory Repair on Windows Server operating systems.


Upon startup, a Windows Server 2003 Active Directory domain controller (DC) displays a message prior to the login prompt, similar to this:

Application popup: lsass.exe - System Error : Security Accounts Manager initialization failed because of the following error: Directory Service cannot start. Error Status: 0xc00002e1. Please click OK to shutdown this system and reboot into Directory Services Restore Mode, check the event log for more detailed information.

The Active Directory (AD) database is corrupt; the server cannot authenticate AD domain members and will not boot into normal mode.


In the absence of a recent systems state backup, the following steps may be used as an AD recovery attempt.

1. Restart the DC in Directory Services Restore Mode (DSRM).

a. On server startup, press F8 after the system BIOS and hardware service (e.g. PERC, iDRAC) initializations are complete.

b. From the boot menu, select 'Directory Services Restore Mode' and press Enter.

2. From the Windows Start button select Run and type 'cmd' to open a command prompt.

Type 'ESENTUTL /g C:\windows\NTDS\ntds.dit /!10240 /8 /o' and press Enter to do the initial integrity check.

In cases of database inconsistencies an error message, e.g. 'results CORRUPTED, -1206' will be returned.

3. Next, type 'NTDSUTIL' and press Enter. This launches the NTDS tools set.

a. At the prompt type 'Files' and press Enter to get to the NTDS file management utility

b. At the file maintenance: prompt type 'info' and press Enter to show locations of all AD database-related files.

4. At the file maintenance: prompt type 'Recover' and press Enter. This will initiate a 'soft' recovery of the AD database.

Note: With rare exception, this step is not sufficient in addressing the problem; it is, primarily, a preliminary step in diagnosing the depth of the issue.

Enter 'quit' at each prompt until returned to the Command (C:\<path>) prompt.

5. From the Command prompt type 'ESENTUTL /ml c:\windows\ntds\edb' to check the AD Database log files.

If this step fails, issue the following commands and press Enter after each:

a. 'DEL *.log'

b. 'DEL *.chk'

and proceed to Step 6.

6. From the Command prompt type 'ESENTUTL /p C:\Winnt\NTDS\ntds.dit /!10240 /8 /o' and press Enter to perform a 'hard' recovery
of the AD Database.

Warning: Upon successful completion, ESENTUTL /p returns the database to the state of its last committed transaction. Recent changes may be lost; for this reason a full System State restore from daily backup is the best-practice method of recovering an AD server.

7. From the Command prompt type 'ESENTUTL /g C:\Winnt\NTDS\ntds.dit /!10240 /8 /o' and press Enter to ensure database consistency.

8. Return to the NTDSUTIL prompt (see Step 3) and type 'sem dat ana' (truncated from 'Semantic Database Analysis') and press Enter.
From the semantic checker: prompt type 'go' and press Enter.

If a problem is detected, type 'go fix' and press Enter.

9. Restart the server in Normal Mode upon completion of all steps.

Additional Information:

Need more help?
Find additional PowerEdge and PowerVault articles

Visit and ask for support in our Communities

Create an online support Request

Article ID: SLN289101

Last Date Modified: 04/09/2017 07:38 AM

Rate this article

Easy to understand
Was this article helpful?
Yes No
Send us feedback
Comments cannot contain these special characters: <>()\
Sorry, our feedback system is currently down. Please try again later.

Thank you for your feedback.