KB ID 0001400
I needed to spin up some Windows 2016 Servers, and a domain to do some testing. I have promoted hundreds maybe thousands of domain controllers, so I wondered if this time I could do it with PowerShell. It’s actually easier than using the GUI!
If you were doing this in Server Manager, you would have to add the role first, and PowerShell is no different;
Then promote the server to a new DC in a new forest;
Supply the new domain name and the recovery password. Select ‘Y’ to reboot, go and have a coffee, when finished you will have a new DC in a new domain, ready to log into.
Related Articles, References, Credits, or External Links