Restart the domain controller and press F8 once the BIOS information appears. Here, select Directory Services Restore Mode, and hit Enter. Now, log in using your Directory Services Restore Mode password. Once done, open cmd and click on Ok.