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) →

Disabled user count should be retrievable

AD-USER-01InfoActive DirectoryUsers

Part of Active Directory · Active Directory · Users · All checks

Run this check
Invoke-Maester -TestId AD-USER-01

Disabled user accounts are expected during offboarding, investigations, and staged deprovisioning. Tracking their volume helps identify stale objects that should be deleted, reduces directory clutter, and supports lifecycle governance.

Detective

Review disabled user accounts regularly and remove accounts that no longer need to exist. For retained accounts, document the business reason and expected retention period.

This test retrieves cached Active Directory user data from Get-MtADDomainState and counts user objects where Enabled = $false. The result includes total, enabled, and disabled user counts plus the disabled percentage.

  • Test-MtAdUserDormantEnabledCount
  • Test-MtAdUserNeverLoggedInCount
  • Test-MtAdUserPasswordNotRequiredCount
Every attribute of this check
FieldValue
Test IDAD-USER-01
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureUsers
AreaIdentity lifecycle and hygiene
Resource typeUser
MITRE ATT&CKNone
PowerShell testTest-MtAdUserDisabledCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:user:ReadProperty