Computer dormant count should be retrievable
AD-COMP-02InfoActive DirectoryComputers
Part of Active Directory · Active Directory · Computers · All checks
Invoke-Maester -TestId AD-COMP-02Overview
Section titled “Overview”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
Control Type
Section titled “Control Type”Detective
Security Recommendation
Section titled “Security Recommendation”Establish a process to:
- Identify dormant computers (this test)
- Investigate whether they represent legitimate systems
- Disable accounts for systems that are truly decommissioned
- Delete disabled accounts after a verification period
How the Test Works
Section titled “How the Test Works”This test examines all enabled computer accounts and identifies those where:
- The
lastLogonDateproperty is older thanMaximumInactiveDays(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).
Related Tests
Section titled “Related Tests”Test-MtAdComputerDisabledCount- Counts already-disabled computer accountsTest-MtAdComputerInDefaultContainer- Identifies computers that may be unmanaged
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | AD-COMP-02 |
| Severity | Info |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Computers |
| Area | Identity lifecycle and hygiene |
| Resource type | Computer |
| MITRE ATT&CK | T1078.002 Domain Accounts |
| PowerShell test | Test-MtAdComputerDormantCount |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:computer:ReadProperty |
Source
Section titled “Source”- Test:
tests/ad/computer/Test.AD-COMP-02.ps1 - Documentation:
tests/ad/computer/Test.AD-COMP-02.md
About this check
- Severity
- Info
- Product
- Active Directory
- Feature
- Computers
- Area
- Identity lifecycle and hygiene
- Suite
- Active Directory