Have you tried these PowerShell cmdlets?
- Install-ADDSDomainController
- Uninstall-ADDSDomainController
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Team,
As new to the Automation part and exploring the few opportunities to utilize Automation for my some of the tech, like we do the DC promotion and DC Demotion activity manually on our environment, where as we have lots of servers in line to be Promoted and Demoted,
Hence, needs some details, whether is it possible to achieve Automation of DC Promo and DC Demo
via PowerShell? keeping in mind MS is deprecating MSOnline,
can we achieve the Automation for the above? to minimize the efforts.
Thank you.
Have you tried these PowerShell cmdlets?
Hello,
You can automate DC promotion and demotion via PowerShell by leveraging the native AD DS deployment cmdlets provided in Windows Server. This method is not impacted by the deprecation of the MSOnline module since it deals with on-premises AD DS actions rather than cloud management. Just be sure to design your scripts with proper parameter handling, error logging, and test extensively before broad deployment.
If the Answer is helpful, please click "Accept Answer" and upvote it.