AddsDomain creates a new domain in a new forest or a child domain in an existing forest.
Source |
|
DSC Resource |
|
Documentation |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
DomainFQDN |
Mandatory |
String |
The fully qualified domain name (FQDN) of a new domain. If setting up a child domain this must be set to a single-label DNS name. |
|
Key |
String |
NetBIOS name for the new domain. |
||
Hashtable[] |
The DomainTrust resource will manage Bidirectional Forest Domain Trusts. |
|||
DomainAdministrator |
PSCredential |
Specifies the user account credentials to use to perform this task. |
||
SafeModeAdministratorPassword |
PSCredential |
Password for the administrator account when the computer is started in Safe Mode. |
||
DatabasePath |
String |
Path to a directory that contains the domain database. |
Default: |
|
LogPath |
String |
Path to a directory for the log file that will be written. |
Default: |
|
SysvolPath |
String |
Path to a directory where the Sysvol file will be written. |
Default: |
|
ForestMode |
String |
The Forest Functional Level for the entire forest. |
|
|
EnablePrivilegedAccessManagement |
Boolean |
MIM Privileged Access Management (PAM) is a solution that helps organizations restrict privileged access within an existing and isolated Active Directory environment. |
|
|
ForceRebootBefore |
Boolean |
Force reboot before creating the new AD domain. Only one reboot after first start of a DSC configuration is supported. |
|
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Fqdn |
Mandatory |
String |
The fully qualified domain name (FQDN) of a trusted domain. |
|
Name |
Mandatory |
String |
Name of the domain trust. |
|
Credential |
Mandatory |
PSCredential |
Specifies the credentials to authenticate to the target domain. |
AddsDomain:
DomainFqdn: contoso.com
DomainName: contoso
DomainDN: DC=contoso,DC=com
DomainJoinAccount: '[ENC=PE9ianMgVm...=]'
DomainAdministrator: '[ENC=PE9ianMgVmVyc2l...=]'
SafeModeAdministratorPassword: '[ENC=PE9ianMgVmVyc2lvbj...=]'
DatabasePath: C:\Windows\NTDS
LogPath: C:\Windows\Logs
SysvolPath: C:\Windows\SYSVOL
ForestMode: Win2012R2
ForceRebootBefore: True
DomainTrusts:
Fqdn: northwindtraders.com
Name: northwindtraders
Credential: '[ENC=PE9ianMgVmVyc2lvbj0i...=]'