Pcornel
Automation · Active Directory Automation

Organizational Units

Cheat sheet · https://pcornel.dk/topic.php?topic=5690

Back to the Topic

Answer

Organizational units structure AD for delegation and Group Policy. Create them with New-ADOrganizationalUnit, protected from accidental deletion, and place objects there automatically by role or site.

Remember

  • OUs are for delegation and Group Policy.
  • Protect from accidental deletion.
  • Plan structure before creating.

First checks

  • Get-ADOrganizationalUnit -Filter * | ft Name,DistinguishedName — OUs
  • New-ADOrganizationalUnit -Name <n> -Path <dn> -ProtectedFromAccidentalDeletion $true — create
  • Delegation on OUs — permissions

Verify in this order

OU → GPO links + delegation

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5690

Confirmation

Confirm action

Continue?