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

Computer dormant count should be retrievable

AD-COMP-02InfoActive DirectoryComputers

Part of Active Directory · Active Directory · Computers · All checks

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

Dormant (stale) computer accounts—enabled accounts that haven’t authenticated for more than the configured threshold (default 90 days)—pose significant security risks:

  • Attack vector: Attackers can exploit dormant accounts that may have weak or unchanged passwords
  • Shadow IT: These may represent forgotten test systems, VMs, or decommissioned hardware still in the directory
  • Lateral movement: Compromised dormant accounts can be used to move laterally within the network
  • Compliance issues: Many security frameworks require identification and remediation of stale accounts

Detective

Establish a process to:

  1. Identify dormant computers (this test)
  2. Investigate whether they represent legitimate systems
  3. Disable accounts for systems that are truly decommissioned
  4. Delete disabled accounts after a verification period

This test examines all enabled computer accounts and identifies those where:

  • The lastLogonDate property is older than MaximumInactiveDays (default 90 days)
  • The account remains enabled

The default 90-day threshold is a common security baseline. Set MaximumInactiveDays to adjust it based on your organization’s requirements (e.g., seasonal systems, remote workstations).

  • Test-MtAdComputerDisabledCount - Counts already-disabled computer accounts
  • Test-MtAdComputerInDefaultContainer - Identifies computers that may be unmanaged
Every attribute of this check
FieldValue
Test IDAD-COMP-02
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureComputers
AreaIdentity lifecycle and hygiene
Resource typeComputer
MITRE ATT&CKT1078.002 Domain Accounts
PowerShell testTest-MtAdComputerDormantCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:computer:ReadProperty