Skip to content

AD-OU-03: OU stale count should be retrievable

ID AD-OU-03
Severity Info
Suite Active Directory (on-premises)
Product Active Directory
Feature Organizational units
Security area Infrastructure hardening
Resource type OrganizationalUnit
Reads from On-premises Active Directory
  • 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

Mito check. Author: soulemike. Open-source licences.

Open-source licences. CIS Benchmark material © Center for Internet Security, Inc.; CISA SCuBA baselines are public domain (CC0).

© 2026 Virtual Petals. Mito is a Virtual Petals service, hosted in Microsoft Azure UAE North.