Starten Sie den Server im Verzeichnisdienstwiederherstellung-Modus, oder beenden Sie Active Directory mit net stop ntds.
Öffnen Sie eine Befehlszeile und starten Ntdsutil.exe.
Geben Sie anschließend den Befehl activate instance ntds ein.
Geben Sie files ein, um zu file maintenance zu gelangen.
Geben Sie integrity ein, um einen Integritätstest der Datenbank durchzuführen. Wenn dieser Test eine Fehlermeldung anzeigt, können Sie versuchen, die Datenbank in Ntdsutil.exe zu retten.
Verlassen Sie mit quit die file maintenance, aber bleiben Sie in der Oberfläche von Ntdsutil.exe.
Geben Sie den Befehl semantic database analysis ein.
Geben Sie zunächst den Befehl verbose on ein, damit Sie detaillierte Informationen erhalten.
Geben Sie als Nächstes den Befehl go fixup ein.
Das Tool beginnt daraufhin mit der kompletten Diagnose der Active Directory-Datenbank und versucht, eine Reparatur durchzuführen. Verlassen Sie im Anschluss Ntdsutil.exe, und starten Sie den Domänencontroller neu. Überprüfen Sie, ob die Active-Directory-Datenbank wieder funktioniert. Sollten noch immer Schwierigkeiten auftreten, stellen Sie die Datenbank aus einer Datensicherung wieder her und überprüfen im Anschluss, ob Active Directory bei diesem Stand noch konsistent war. Sie sollten so lange Backups zurückspielen, bis sichergestellt ist, dass die Datenbank wieder konsistent ist.
You can sometimes improve the performance of Active Directory (AD) by moving the database file (ntds.dit) to a different physical drive. This can also be useful if you are running out of hard drive space. You can use the following steps to move the ntds.dit database file to a different location.
Step
Command
1.
Launch a command prompt. Back up system state data with the following command. This command uses the D: drive as the backup target, but you can choose a different target based on your system. wbadmin start systemstatebackup -backuptarget:d: -quiet
NOTE
The Windows Server Backup feature must be installed for this step to work.
TIP
Although this step is not required, it ensures that you can recover your DC if something goes wrong. It takes some time to complete.
2.
At the command, type net stop ntds and press Enter. When prompted to stop additional services, press Y to confirm. This stops AD and related services.
3.
Type ntdsutil and press Enter.
4.
Type activate instance ntds and press Enter.
5.
Type files and press Enter.
6.
Type move db to e:\ntds and press Enter. Type move logs to e:\ntds and press Enter.
NOTE
You need to substitute the drive letter e: with a valid writable drive on your system. The folder doesn't need to exist because the move command creates it.
7.
Type quit, and then press Enter twice to return to the command prompt.
8.
Type net start ntds and press Enter to restart AD. After it starts, you can launch ADUC to verify that everything still works.