Promote Domain Controller with Powershell

metro-powershell-logoDomain Controller promotion can also be done with PowerShell script:

#

# PowerShell script for Domain Controller Deployment

#

Import-Module ServerManager

Add-WindowsFeature AD-Domain-Services

Import-Module ADDSDeployment

Install-ADDSDomainController

-NoGlobalCatalog:$false

-CreateDnsDelegation:$false

-CriticalReplicationOnly:$false

-DatabasePath “C:\Windows\NTDS”

-DomainName "YOUDomainFQDN"

-InstallDns:$true

-LogPath "C:\Windows\NTDS"

-NoRebootOnCompletion:$false

-ReplicationSourceDC "CHANGEMEIMAHOST.FQDN"

-SiteName “CHANGEMEIMASITE

-SysvolPath "C:\Windows\SYSVOL"

-Force:$true

Leave a Reply

avatar
  Subscribe  
Notify of
We use cookies to improve the user-friendliness and stats of the website. Through your visit, you agree with that.