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 stale count should be retrievable

AD-OU-03InfoActive DirectoryOrganizational units

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

Run this check
Invoke-Maester -TestId AD-OU-03
  • Organizational Units that haven’t been modified since before 2020 may represent:
  • Abandoned projects: OUs created for initiatives that were never completed or were abandoned
  • Outdated structure: Organizational units that no longer reflect current business structure
  • Directory clutter: Unused containers that make the directory harder to navigate
  • Potential security gaps: Stale OUs may have outdated permissions or Group Policy links
  • While stale OUs don’t pose a direct security threat, they contribute to directory sprawl and can make administration more complex. They may also retain old permissions or Group Policy settings that are no longer appropriate.

Detective

  • Regularly review OUs that haven’t been modified in several years:
  • Verify whether the OU is still needed for its original purpose
  • Check if the OU contains any objects (see Test-MtAdOuEmptyCount)
  • Review permissions and Group Policy links on stale OUs
  • Consider deleting or repurposing OUs that are no longer needed
  • Document the purpose of OUs to help future cleanup efforts
  • This test retrieves all Organizational Units from Active Directory and:
  • Examines the last modified timestamp of each OU
  • Counts OUs that haven’t been modified since before January 1, 2020
  • Lists stale OUs with their last modification date and distinguished name
  • Test-MtAdOuEmptyCount - Identifies OUs with no objects
  • Test-MtAdOuEmptyDetails - Provides detailed list of empty OUs
  • Test-MtAdGroupStaleCount - Identifies groups not modified since before 2020
Every attribute of this check
FieldValue
Test IDAD-OU-03
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureOrganizational units
AreaInfrastructure hardening
Resource typeOrganizationalUnit
MITRE ATT&CKNone
PowerShell testTest-MtAdOuStaleCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:organizationalUnit:ReadProperty