Skip to content

Latest commit

 

History

History
103 lines (81 loc) · 2.28 KB

AddsDomainUsers.adoc

File metadata and controls

103 lines (81 loc) · 2.28 KB

DSC Resource 'AddsDomainUsers'

AddsDomainUsers manages Users within Active Directory.

Source

DSC Resource

Documentation

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

Users

Hashtable[]

List of users to create.
Requires [dscyml_addsdomain_domainname].

Table 2. Selected Attributes of category 'AddsDomainUsers/Users' - see ADUser for more
Parameter Attribute DataType Description Allowed Values

UserName

Key

String

Specifies the Security Account Manager (SAM) account name of the user (ldapDisplayName 'sAMAccountName').

Password

PSCredential

Specifies a new password value for the account.

Ensure

String

Specifies whether the user account should be present or absent.

  • Present (default)

  • Absent

CommonName

String

Specifies the common name assigned to the user account (ldapDisplayName 'cn').
If not specified the default value will be the same value provided in parameter UserName.

DisplayName

String

Specifies the display name of the object (ldapDisplayName 'displayName').

UserPrincipalName

String

Specifies the User Principal Name (UPN) assigned to the user account (ldapDisplayName 'userPrincipalName').

Example
AddsDomainUsers:
  Users:
    - UserName: test1
      Password: '[ENC=PE9ianM...=]'
    - UserName: test2
      Password: '[ENC=PE9ianM...=]'