ntds.dit file is corrupt on one DC.  Is it ok to simply copy the same file from a good DC and overwrite it on the bad DC?

Posted on 2004-11-05
Last Modified: 2012-05-05

One of my DC's is failing to boot because the ntds.dit file has become corrupted.  I can only boot the DC in Directory Services Restore mode.  This DC is also the Global Catalog server in my domain of 3 DC's.  I'd rather not do a forced demote on this DC because I'd then have to make another DC the Global Catalog server in the process.

Can I just simply copy the ntds.dit file from one of the other DC's and replace the corrupted file?

Question by:kevinfinlay
    LVL 11

    Accepted Solution

    no dont copy it.
    boot into ad restore mode.
    To use Ntdsutil to recover the Active Directory database, type "ntdsutil files repair" at a command prompt in Directory Service Restore Mode.
    After the repair operation is complete, rename the .log files in the NTDS folder by using a different extension such as .bak, and try to start the domain controller in normal mode.
    If the repair operation does not appear to finish, you can try to repair the database by using Esentutl.
    At the command prompt, type the following command:
    "esentutl /p path\ntds.dit"
    After the command has finished running, rename the .log files in the NTDS folder by using a different extension such as .bak.
    reboot in normal mode.

    Author Comment


    I couldn't get "ntdsutil files repair" to work because I believe it was the wrong syntax.  I believe "repair" should be "recover" but no luck using "recover.

    I then followed your instrucstions for "esentutl" and it worked perfectly!

    Thank you! Thank you! Thank you!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    It is a known fact that servers reach the end of their lives. Some get there quicker than others, based on age, manufacturer, usage and several other factors. However, if your organization has spent time deploying Microsoft's Active Directory server…
    Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now