Infrastructure-as-code framework for Active Directory objects and Group Policy. Sanitized from production deployment for public sharing.
33 lines
869 B
PowerShell
33 lines
869 B
PowerShell
# Organizational Unit Definitions
|
|
# Processed first — OUs must exist before groups and users can be placed in them.
|
|
|
|
$domainDN = 'DC=example,DC=internal'
|
|
|
|
@(
|
|
@{
|
|
Name = 'ExampleUsers'
|
|
Path = $domainDN
|
|
Description = 'Standard user accounts'
|
|
}
|
|
@{
|
|
Name = 'ExampleWorkstations'
|
|
Path = $domainDN
|
|
Description = 'Domain-joined workstations'
|
|
}
|
|
@{
|
|
Name = 'ExampleServers'
|
|
Path = $domainDN
|
|
Description = 'Domain-joined servers'
|
|
}
|
|
@{
|
|
Name = 'ExampleAdmins'
|
|
Path = $domainDN
|
|
Description = 'Delegated administrator accounts'
|
|
}
|
|
@{
|
|
Name = 'ExampleAdminWorkstations'
|
|
Path = $domainDN
|
|
Description = 'Privileged access workstations for admin accounts'
|
|
}
|
|
)
|