KB ID 0001400
Problem
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!
Solution
If you were doing this in Server Manager, you would have to add the role first, and PowerShell is no different;
[box]Install-WindowsFeature AD-Domain-Services -IncludeManagementTools[/box]
Then promote the server to a new DC in a new forest;
[box]Install-ADDSForest[/box]
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
NA