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 disabled count should be retrievable

AD-COMP-01InfoActive DirectoryComputers

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

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

Disabled computer accounts that remain in Active Directory represent a security hygiene issue. While disabling a computer account is a valid administrative action (typically when decommissioning systems), these accounts should eventually be removed to:

  • Reduce attack surface: Disabled accounts can be re-enabled by attackers who gain privileged access
  • Prevent confusion: Distinguish between active and truly decommissioned systems
  • Maintain directory cleanliness: Simplify auditing and compliance reporting
  • Avoid stale data: Ensure Group Policy and software deployment targets are accurate

Detective

Regularly review disabled computer accounts and delete those that are permanently decommissioned. Consider establishing a process where disabled computers are automatically deleted after a defined retention period (e.g., 30-90 days).

This test retrieves all computer objects from Active Directory and counts:

  • Total number of computer accounts
  • Number of disabled computer accounts
  • Percentage of computers that are disabled

The test returns informational results to help you assess the scope of disabled accounts in your environment.

  • Test-MtAdComputerDormantCount - Identifies enabled computers that haven’t logged on recently
  • Test-MtAdComputerInDefaultContainer - Finds computers in the default container (another hygiene indicator)
Every attribute of this check
FieldValue
Test IDAD-COMP-01
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureComputers
AreaIdentity lifecycle and hygiene
Resource typeComputer
MITRE ATT&CKNone
PowerShell testTest-MtAdComputerDisabledCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:computer:ReadProperty