Use Esentutl when Ntdsutil tool fails to repair the Active Directory database

  • Section(s): Active Directory
  • Published on Apr 20, 2004.
  • Last Modified on Apr 20, 2004.
  • Last Modified by Wayne Maples.
  • Rated 4.5 out of 5 based on 52 votes.
The Ntdsutil tool may fail to repair the Active Directory database (the Ntds.dit file) and generates one or more of the following errors:

Operation failed because the database was inconsistent.

Initialize jet database failed; cannot access file.

Error while performing soft recovery. 

All is not lost. You can use the Esentutl.exe tool to resolve the problem.
  • To perform an integrity check

    • Start a command prompt
    • Type the following command (including the quotation marks), and then press ENTER: esentutl /g "path\ntds.dit"/!10240 /8 /v /x /o

      where path is the path to the folder that contains the Ntds.dit db file. By default, this folder is %systemRoot%\NTDS folder.

  • To repair the database:
    • Type the following command (including the quotation marks), and then press ENTER: esentutl /p "path\ntds.dit" /!10240 /8 /v /x /o

Important: Delete the database log files from the Ntds folder. Do not delete or move the Ntds.dit file.

Related Tips:

About Wayne Maples

Share this article


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred Firewall & VPN hardware solution?