Question: how to restore active directory database?
Answer: Reboot the system.
When prompted to select an operating system or when Windows displays the “Starting Windows” progress bar, press “F8.”
Select “Directory Services Restore Mode” from the boot options, and press “Enter."