Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Created September 19, 2016 10:19
Show Gist options
  • Save nivleshc/e2da4a07e22eccdeddd171af5912c937 to your computer and use it in GitHub Desktop.
Save nivleshc/e2da4a07e22eccdeddd171af5912c937 to your computer and use it in GitHub Desktop.
Add Replica Domain Controller to existing Active Directory Domain
xADDomainController ReplicaDC
{
DomainName = $DomainName
DomainAdministratorCredential = $DomainCreds
SafemodeAdministratorPassword = $SafeModeAdminCreds
DatabasePath = "C:\NTDS"
LogPath = "C:\NTDS"
SysvolPath = "C:\SYSVOL"
DependsOn = "[xWaitForADDomain]DScForestWait"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment