Hi Garima Das
Thank you for posting in Q&A forum.
- If the DC is not the last one in your domain, and you demoted it without doing metadata cleanup:
Please promote the server again to roll back.
Or add a new server to the domain and promote it as DC.
- If the DC is not the last one in your domain, and you demoted it with metadata cleanup:
You can choose restoring a DC through reinstallation or nonauthoritative restore of a DC, then promote the server to roll back.
Performing a Nonauthoritative Restore of a Domain Controller: Active Directory | Microsoft Learn
Restoring a Domain Controller Through Reinstallation: Active Directory | Microsoft Learn
- If the DC is the last one in your domain:
You need to backup before demotion and do the AD restore to roll back.
Managing Active Directory Backup and Restore: Active Directory | Microsoft Learn
Restore Active Directory from backup: Active Directory | Microsoft Learn
Hope the information above is helpful.
If you have any question or concern, please feel free to let us know.
Best Regards,
Daisy Zhou