Use this when creating or structuring OUs by script.
Organizational Units
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.
1. OUs structure AD for GPOs and delegation.
2. Protect from accidental deletion.
3. Delegate narrowly.
4. Keep structure simple.
5. Document.
OU → GPO links + delegation
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Moving objects between OUs without checking GPO effects.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- OUs are for delegation and Group Policy.
- Protect from accidental deletion.
- Plan structure before creating.
Get-ADOrganizationalUnit -Filter * | ft Name,DistinguishedName— OUsNew-ADOrganizationalUnit -Name <n> -Path <dn> -ProtectedFromAccidentalDeletion $true— create- Delegation on OUs — permissions
ReferenceWhy it matters1 section · depth on demand
What it is
Organizational Units (OUs) are containers in Active Directory used to group users, computers and groups for delegation of administration and Group Policy linking. Structure them by administration and policy needs, not the org chart.
ReferenceHow it works1 section · depth on demand
In depth
Organisational Units (OUs) structure Active Directory objects for administration and Group Policy. Automation creates and maintains OU structures consistently and places new objects in the right OU, which determines which policies and delegations apply to them.
New-ADOrganizationalUnit -Name 'Servers' -Path 'OU=Oslo,DC=corp,DC=example,DC=com' -ProtectedFromAccidentalDeletion $true
Get-ADOrganizationalUnit -Filter * -SearchBase 'OU=Oslo,DC=corp,DC=example,DC=com' | Select-Object DistinguishedName
Move-ADObject -Identity 'CN=SRV01,CN=Computers,DC=corp,DC=example,DC=com' -TargetPath 'OU=Servers,OU=Oslo,DC=corp,DC=example,DC=com'
Redirect default containers (redircmp, redirusr) so new computers and users land in OUs with policies, not in the default containers where GPOs cannot be linked.
ReferenceImportant terms & boundaries1 section · depth on demand
Example
New-ADOrganizationalUnit -Name 'Servers' -Path 'DC=corp,DC=local' -ProtectedFromAccidentalDeletion $true
Get-ADOrganizationalUnit -Filter * | Select Name,DistinguishedName
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Active Directory Automation > Organizational Units. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/powershell/module/activedirectory/?view=windowsserver2025-ps · confidence 94%