Windows Server 2012–Making Domain Controllers IS Easier–Server Manager gives birth to a Powershell Script!

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.

image
imageimage

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

imageimage

Because at the end of it all – **** DING **** DING **** DING ****

A POWERSHELL Script!

image

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
#

Import-Module ADDSDeployment
Install-ADDSDomainController `
-DoNotConfigureGlobalCatalog:$false `
-CreateDNSDelegation:$false `
-Credential (Get-Credential) `
-CriticalReplicationOnly:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainName "energized.local" `
-InstallDNS:$true `
-LogPath "C:\Windows\NTDS" `
-RebootOnCompletion:$true `
-SiteName "Default-First-Site-Name" `
-SYSVOLPath "C:\Windows\SYSVOL" `
-Force:$true

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!

Sean
The Energized Tech


[array]$Archive

Energized About Windows PowerShell, , Ottawa, Ontario USA

© 2014 Energized About Windows PowerShell-- All rights reserved.

Email Us
  • Facebook Logo
  • Twitter Logo
  • RSS logo
  • YouTube logo