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

Dormant enabled user count should be retrievable

AD-USER-02InfoActive DirectoryUsers

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

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

Enabled user accounts that have not logged on for more than the configured threshold (default 90 days) are a common sign of weak identity hygiene. Forgotten but still-enabled accounts can retain access, group memberships, and password material that attackers may target.

Detective

Investigate dormant enabled accounts and disable or remove those that are no longer needed. For exceptions such as break-glass or low-use service accounts, apply stronger controls and document ownership.

This test retrieves Active Directory user data from Get-MtADDomainState, filters to enabled users, and counts accounts where LastLogonDate is older than MaximumInactiveDays (default 90 days). The output shows the number and percentage of dormant enabled users.

  • Test-MtAdUserDisabledCount
  • Test-MtAdUserNeverLoggedInCount
  • Test-MtAdUserPasswordNeverExpiresCount
Every attribute of this check
FieldValue
Test IDAD-USER-02
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureUsers
AreaIdentity lifecycle and hygiene
Resource typeUser
MITRE ATT&CKT1078.002 Domain Accounts
Supports controlsnist-800-53-r5:AC-2(3)
PowerShell testTest-MtAdUserDormantEnabledCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:user:ReadProperty