Question: how to restore the active directory?
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."