AddsOrgUnitsAndGroups adds Groups and Organizational Units to an existing domain.
Source |
|
DSC Resource |
|
Documentation |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
String |
Distinguished Name (DN) of the domain. |
|||
Hashtable[] |
List of Organizational Units (OUs) within Active Directory |
|||
Hashtable[] |
List of groups within Active Directory. |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name |
Key |
String |
The name of the Organizational Unit (OU). |
|
Path |
Key |
String |
The name of the Organizational Unit (OU). |
Default: DomainDn |
ChildOu |
Object[] |
List of Child Organizational Units. |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
GroupName |
Key |
String |
Name of the Active Directory group. |
|
GroupScope |
String |
Active Directory group scope. |
|
|
Category |
String |
Active Directory group category. |
|
|
Path |
String |
Location of the group within Active Directory expressed as a Distinguished Name (DN). The DomainDn is appended automatically for |
||
Ensure |
String |
Specifies if this Active Directory group should be present or absent. |
|
|
Description |
String |
Description of the Active Directory group. |
||
DisplayName |
String |
Display name of the Active Directory group. |
||
Credential |
PSCredential |
The credential to be used to perform the operation on Active Directory. |
||
DomainController |
String |
Active Directory domain controller to enact the change upon. |
||
Members |
String[] |
Active Directory group membership should match membership exactly. |
||
MembersToInclude |
String[] |
Active Directory group should include these members. |
||
MembersToExclude |
String[] |
Active Directory group should NOT include these members. |
||
MembershipAttribute |
String |
Active Directory attribute used to perform membership operations. |
|
|
ManagedBy |
String |
Active Directory managed by attribute specified as a DistinguishedName. |
||
Notes |
String |
Active Directory group notes field. |
||
RestoreFromRecycleBin |
Boolean |
Try to restore the group from the recycle bin before creating a new one. |
AddsOrgUnitsAndGroups:
DomainDN: DC=contoso,DC=com
OrgUnits:
- Name: Admin
Path: DC=contoso,DC=com
ChildOu:
- Name: Groups
- Name: Computers
- Name: Autofill
ChildOu:
- Name: Groups
- Name: Computers
Groups:
# change attributes of BuiltIn groups
- GroupName: Administrators
Description: BuiltIn Account
# create new groups
- GroupName: App_123_Read
Path: OU=Groups,OU=Admin
GroupScope: DomainLocal
- GroupName: App_123_Write
Path: OU=Groups,OU=Admin
GroupScope: Global
Datum.yml
(Excerpt)lookup_options:
AddsOrgUnitsAndGroups:
merge_hash: deep
AddsOrgUnitsAndGroups\OrgUnits:
merge_baseType_array: Unique
merge_hash_array: DeepTuple
merge_options:
tuple_keys:
- Name
- Path
AddsOrgUnitsAndGroups\Groups:
merge_baseType_array: Unique
merge_hash_array: DeepTuple
merge_options:
tuple_keys:
- GroupName