The below error may occur during the forest recovery:
"Cannot contact the DC. Make sure the DC is online and accessible and a firewall does not block connections to the DC"
Test WMI connectivity using wbemtest:
If the connection fails or there are errors when trying to connect or enumerate the WMI classes, verify there are no firewalls or network issues preventing the WMI connection and that the account has the necessary rights to connect to and query WMI.