Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nivleshc/136be46e5399d2c24fb6cbbca57abc38 to your computer and use it in GitHub Desktop.
Save nivleshc/136be46e5399d2c24fb6cbbca57abc38 to your computer and use it in GitHub Desktop.
Part of the CreateNewADForest DSC configuration script that adds the first domain controller
xADDomain FirstDC
{
DomainName = $DomainName
DomainAdministratorCredential = $DomainCreds
SafemodeAdministratorPassword = $SafeModeAdminCreds
DatabasePath = "C:\NTDS"
LogPath = "C:\NTDS"
SysvolPath = "C:\SYSVOL"
DependsOn = "[WindowsFeature]ADDSInstall","[xDnsServerAddress]DnsServerAddress"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment