Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

OU overlapping name count should be retrievable

AD-OU-01InfoActive DirectoryOrganizational units

Part of Active Directory · Active Directory · Organizational units · All checks

Run this check
Invoke-Maester -TestId AD-OU-01
  • Organizational Units with overlapping (duplicate) names can create administrative confusion and operational risks in Active Directory:
  • Administrative errors: Administrators may inadvertently apply Group Policies, permissions, or settings to the wrong OU when multiple OUs share the same name
  • Scripting complications: Automation scripts that reference OUs by name may target incorrect containers
  • Policy application issues: Group Policy links may be applied to unintended OUs
  • Audit confusion: Security audits and compliance reports become harder to interpret when OU names are ambiguous
  • While Active Directory technically allows duplicate OU names (as long as they’re in different locations), this practice should be minimized to reduce operational risk.

Operational

  • Review OUs with duplicate names and consider renaming them to be more descriptive and unique. Use naming conventions that incorporate location, function, or department to make OU names unambiguous. For example:

  • Instead of multiple “Users” OUs, use “NYC-Users”, “LA-Users”, “London-Users”

  • Instead of multiple “Servers” OUs, use “Production-Servers”, “Test-Servers”, “Dev-Servers”

  • This test retrieves all Organizational Units from Active Directory and:
  • Groups OUs by their Name property
  • Identifies names that appear more than once
  • Counts the number of duplicate name groups
  • Lists all OUs that share names with other OUs
  • Test-MtAdOuAtDomainRootCount - Analyzes OU structure at the domain root level
  • Test-MtAdOuEmptyCount - Identifies OUs that contain no objects
Every attribute of this check
FieldValue
Test IDAD-OU-01
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureOrganizational units
AreaInfrastructure hardening
Resource typeOrganizationalUnit
MITRE ATT&CKNone
PowerShell testTest-MtAdOuOverlappingNameCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:organizationalUnit:ReadProperty