Tip: You can add a domain controller to an existing domain:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#requires -Version 2 Import-Module -Name ADDSDeployment $parameters = @{ NoGlobalCatalog = $false CreateDnsDelegation = $false Credential = (Get-Credential) CriticalReplicationOnly = $false DatabasePath = 'C:\Windows\NTDS' DomainName = 'contoso.com' InstallDns = $true LogPath = 'C:\Windows\NTDS' NoRebootOnCompletion = $false ReplicationSourceDC = 'DC01.contoso.com' SiteName = 'Default-First-Site-Name' SysvolPath = 'C:\Windows\SYSVOL' Force = $true } Install-ADDSDomainController @parameters |