Making a new Domain Controller actually wasn’t a difficult task. It was a quick “Click, click click,type type type, click click, backspace click, enter,enter” in the GUI
Get what I’m saying?
Promoting roles was actually easy as was adding features. REPEATEDLY doing those tasks was about as fun as chewing tinfoil while gargling gasoline and singing “Yankee Doodle Dandy” or ANY fun tune.
Until the clouds parted, Jeffrey Snover and the Powershell team’s voice boomed out “Powershell” and Windows Server 2012 began to appear.
You see something wonderful has begun to form in the Development of this new system. Sample scripts in the Server environment!
Running through the Wizard of adding the Active Directory Domain Services is slightly different. The Server Manager completely different than before but oh so much more powerful. I select a Server or VHD and add the required Active Directory Domain Services role to it.
Then of course begin the promotion to a Domain Controller. But once you play and began adding it as a Domain Controller the magic starts to flow free
Because at the end of it all – **** DING **** DING **** DING ****
A POWERSHELL Script!
Choosing “View Script” will produce the EXACT Powershell script being used to turn that computer in a Domain Controller.
Below (without anything done on my part) is the exact script Windows Server 2012 generated to create a new Domain Controller in my environment
# Windows PowerShell script for AD DS Deployment
-Credential (Get-Credential) `
-DatabasePath "C:WindowsNTDS" `
-DomainName "energized.local" `
-LogPath "C:WindowsNTDS" `
-SiteName "Default-First-Site-Name" `
-SYSVOLPath "C:WindowsSYSVOL" `
Now the best part, think about it. If you like the GUI and are happy with it. Stay with it and be as productive as you love. But the best part of the Sample script is when the boss in the organization screams. “I need a new DC STAT!” you can take this script and just RUN it on the box.
Oh man, the future is getting Cool
The Power of Shell is… OH MAN IT’s GETTING ROCKIN’ CRAZY COOL!
The Energized Tech