Deploying Active Directory with Power Shell

Spread the words

There comes a time you have to let go the Windows GUI and use command lines. Hope this post could help.

Situation:

Install the first AD server in a new AD forest.

First add the Active Directory Domain Service role to the server. Use Install-WindowsFeature cmdlet.

Install-WindowsFeature –name AD-Domain-services

ADDSinstall 

InprogressADDSinstall

Use the Get-Windowsfeature cmdlet to check the installation status.

Get-WindowsFeature

GetWinfea

As we are going to install a new domain in a new forest, use the Install-addsforest cmdlet to install the AD.

Install-ADDSForest –DomainName Frenchitguy.com

installaddsforest

Enter the safe mode administrator password and confirm

safeadminpass

Enter Yes

installyes

Install in progress

adinstallinprogress

The server will reboot automatically. If you don’t want to reboot, use the –norebootoncompletion argument with the Install-ADDSforest cmdlet.

You can use the –WhatIf argument to review the configuration information.

Install-ADDSForest –DomainName Frenchitguy.com –WhatIf

WhatIf

That’s it. Your first DC in your first domain and forest is ready to go!

Be the first to comment on "Deploying Active Directory with Power Shell"

Leave a comment

Your email address will not be published.


*