Skip to content

Latest commit

 

History

History
153 lines (125 loc) · 3.94 KB

AddsDomainController.adoc

File metadata and controls

153 lines (125 loc) · 3.94 KB

DSC Resource 'AddsDomainController'

AddsDomainController installs and configures domain controllers in Active Directory.

Source

DSC Resource

Documentation

Table 1. Attributes of category 'AddsDomainController'
Parameter Attribute DataType Description Allowed Values

DomainName

Key

String

The fully qualified domain name (FQDN) of the domain the Domain Controller will be joining.

Credential

Mandatory

PSCredential

The credentials of a user that has Domain Administrator rights to add the Domain Controller to the domain.

SafemodeAdministratorPassword

Mandatory

PSCredential

Credentials containing the password to use for Directory Services Restore Mode (DSRM).

DatabasePath

String

The path where the database will be stored.

Default: C:\Windows\NTDS

LogPath

String

The path where the logs will be stored.

Default: C:\Windows\Logs

SysvolPath

String

The path where the Sysvol will be stored.

Default: C:\Windows\SYSVOL

SiteName

Mandatory

String

The name of the site this Domain Controller will be added to.

Set value to 'Default-First-Site-Name' if the Domain Controller shall be added to default site.

IsReadOnlyReplica

Boolean

Specifies if the domain controller will be a Read-Only Domain Controller (RODC).

  • False (default)

  • true

AllowPWReplication

Mandatory if RODC, DSC will remove all not listet groups if you add them manually in AD.

String[]

Specifies an array of names of user accounts, group accounts, and computer accounts whose passwords can be replicated to this Read-Only Domain Controller (RODC).

DenyPWReplication

Mandatory if RODC, DSC will remove all not listet groups if you add them manually in AD.

String[]

Specifies the names of user accounts, group accounts, and computer accounts whose passwords are not to be replicated to this Read-Only Domain Controller (RODC).

IsGlobalCatalog

Boolean

Specifies if the domain controller will be a Global Catalog (GC).

  • True (default)

  • False

UnprotectFromAccidentalDeletion

Boolean

Specifies if the 'Protect from accidental deletion' flag shall be removed from the AD computer account before promoting to a domain controller.

If the computer acts as domain controller the 'Protect from accidental deletion' flag will not changed anymore.

  • False (default)

  • True

InstallationMediaPath

String

The path of the media you want to use install the Domain Controller.

(not used inside)

Example
AddsDomainController:
  DomainName: contoso.com
  Credential: '[ENC=PE9ian...=]'
  SafeModeAdministratorPassword: '[ENC=PE9ian...=]'
  LogPath: C:\Windows\Logs
  SysvolPath: C:\Windows\SYSVOL
  SiteName: London
  IsGlobalCatalog: false
  IsReadOnlyReplica: true
  UnprotectFromAccidentalDeletion: true
  InstallationMediaPath: \\Server\Share

  AddsDomainController:
  DomainName: contoso.com
  Credential: '[ENC=PE9ian...=]'
  SafeModeAdministratorPassword: '[ENC=PE9ian...=]'
  LogPath: C:\Windows\Logs
  SysvolPath: C:\Windows\SYSVOL
  SiteName: London
  IsGlobalCatalog: true
  AllowPasswordReplication:
    - 'SiteGroup-AllowPasswordReplication'
    - 'TestGroup'
  DenyPasswordReplication:
    - 'SiteGroup-DenyPasswordReplication'
  IsReadOnlyReplica: true
  UnprotectFromAccidentalDeletion: true
  InstallationMediaPath: \\Server\Share