Hi Lysa Analyst,
You’re right that the safest way forward is to boot into Directory Services Restore Mode (DSRM) and run an offline integrity check with esentutl, but let me walk you through the steps clearly.
First, restart the domain controller and press F8 to boot into DSRM. Log in with the DSRM administrator credentials. Once in, open a command prompt and navigate to the folder containing ntds.dit (usually %SystemRoot%\NTDS). Run esentutl /g ntds.dit to perform an integrity check. If errors are found, you can attempt a repair with esentutl /p ntds.dit, but only after ensuring you have a full system state backup, repairs can truncate data if corruption is severe.
After repair, run esentutl /d ntds.dit to defragment the database offline, followed by esentutl /cc <path to checkpoint file> to reset the checkpoint. Once complete, restart the server normally and verify that domain services authenticate correctly. If corruption persists, restoring from a recent system state backup may be the safer option.
As a best practice, always back up before attempting repair, and consider running repadmin /syncall after recovery to ensure replication consistency across domain controllers.
I hope the response provided some helpful insight. If you find this answer useful, please hit “accept answer” so I know it addressed your concern.
Jason.