Friday, June 22, 2012

powershell script to configure the AD Domain Control for win Server 2012

you can run this script in powershell windows to configure the new AD domain
control automatically when you add a new AD domain controller to the server farm. 

#
# Windows PowerShell script for AD DS Deployment
#

Import-Module ADDSDeployment
Install-ADDSForest `
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "Win2012" `
-DomainName "WINServer2012.Local" `
-DomainNetbiosName "WINSERVER2012" `
-ForestMode "Win2012" `
-InstallDns:$true `
-LogPath "C:\Windows\NTDS" `
-NoRebootOnCompletion:$false `
-SysvolPath "C:\Windows\SYSVOL" `
-Force:$true

No comments:

Post a Comment