Saturday, January 19, 2013

AD DS Deployment through Windows Powershell - Windows Server 2012


#
# Windows PowerShell script for AD DS Deployment
#

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

Note: This is a script which can be run for AD DS configuration to promote the first server as a DC in new forest. Please install prerequisite through Server Manager before running this script.

No comments:

Post a Comment