Home / Windows Server 2012 / Windows PowerShell script for AD DS Deployment

Windows PowerShell script for AD DS Deployment

#
# Windows PowerShell script for AD DS Deployment
#

Import-Module ADDSDeployment
Install-ADDSForest
-CreateDnsDelegation:$false

-DatabasePath “C:\Windows\NTDS”
-DomainMode "Win2012R2"

-DomainName “contoso.com”
-DomainNetbiosName "CONTOSO"

-ForestMode “Win2012R2”
-InstallDns:$true

-LogPath “C:\Windows\NTDS”
-NoRebootOnCompletion:$false

-SysvolPath “C:\Windows\SYSVOL” `
-Force:$true

About Venu Madhav

Leave a Reply