Asked by:
Script to demote multiple domain controllers

Question
-
I am looking for a script that can remove multiple domain controllers as well as their metadata. we want to use this for our DR tests when we perform a recovery in a bubble with clone domain controllers. ThanksTuesday, November 21, 2017 1:44 PM
All replies
-
Please read this first: https://social.technet.microsoft.com/Forums/scriptcenter/en-US/c47b1bc2-f7fd-4d2e-8ff2-e8a81ce090d4/this-forum-is-for-scripting-questions-rather-than-script-requests?forum=ITCG
Also find scripts here: http://gallery.technet.microsoft.com/
Learn PowerShell: https://mva.microsoft.com/en-us/training-courses/getting-started-with-microsoft-powershell-8276
Script requests: https://gallery.technet.microsoft.com/scriptcenter/site/requests
\_(ツ)_/
Tuesday, November 21, 2017 4:49 PM -
Hi,
Are your DCs online? Based on my research, if DCs are working properly, you can have a try with Uninstall-ADDSDomainController to demote DCs, and there may have no need to cleanup the metadata. If not, ntdsutil.exe may be a better way to cleanup the metadata. The following links for your reference, hope it is helpful to you:
Uninstall-ADDSDomainController
https://technet.microsoft.com/en-us/library/hh974714(v=wps.630).aspx
Ntdsutil
https://technet.microsoft.com/en-us/library/cc753343(v=ws.11).aspx
If you need further help, please feel free to let us know.
Best Regards,
Albert LingPlease remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com- Proposed as answer by Albert LingMicrosoft contingent staff Tuesday, November 28, 2017 8:14 AM
Wednesday, November 22, 2017 7:29 AM -
Hi,
Just checking in to see if the information provided was helpful.
Please let us know if you would like further assistance.
Best Regards,
Albert LingPlease remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.comFriday, November 24, 2017 2:42 AM -
Hi,
I am checking how the issue is going, if you still have any questions, please feel free to contact us.
If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.
If no, please reply and tell us the current situation in order to provide further help.
Appreciate for your feedback.
Best Regards,
Albert LingPlease remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.comTuesday, November 28, 2017 8:14 AM