Device Clean-up Rule is Created
ZTA.24802 is in Maester 3.0.0-preview and not in the stable 2.3.0 release yet. It will be in the next stable release. To use it now, install the preview:
Install-Module Maester -AllowPrerelease -ForceHow to get the preview, and go backUse the preview in GitHub Actions
MT.1053 (Ensure intune device clean-up rule is configured) checks the same setting. Running both reports it twice.
Overview
Section titled “Overview”If device cleanup rules aren’t configured in Intune, stale or inactive devices can remain visible in the tenant indefinitely. This leads to cluttered device lists, inaccurate reporting, and reduced visibility into the active device landscape. Unused devices might retain access credentials or tokens, increasing the risk of unauthorized access or misinformed policy decisions.
Device cleanup rules automatically hide inactive devices from admin views and reports, improving tenant hygiene and reducing administrative burden. This supports Zero Trust by maintaining an accurate and trustworthy device inventory while preserving historical data for audit or investigation.
Remediation
Section titled “Remediation”Configure Intune device cleanup rules to automatically hide inactive devices from the tenant:
For more information, see:
- Using Intune device cleanup rules on the Microsoft Tech Community blog
Run it
Section titled “Run it”The check runs as part of the whole assessment, with the ZeroTrustAssessment module installed:
Install-Module ZeroTrustAssessment -Scope CurrentUserConnect-MaesterInvoke-Maester -Pack ZTA -SkipBuiltInLeave out -SkipBuiltIn to run Maester’s own checks in the same run.
About this check
| Severity | High |
| Effort to fix | High |
| Impact on users | Low |
| Pillar | Devices |
| Category | Device management |
| Product | Intune |
| Feature | Tenant administration |
| Area | Devices and endpoints |
| Licence | Intune |
| Tenant | Workforce |
Product, feature, area and ATT&CK are Maester’s: the assessment does not record them, so Maester keeps them in the pack’s taxonomy.json.
A Microsoft check, part of the Zero Trust Assessment pack. Text from ZeroTrustAssessment 3.1.0, © Microsoft, MIT licence.
About this check
- Severity
- High
- Effort to fix
- High
- Impact on users
- Low
- Product
- Intune
- Feature
- Tenant administration
- Area
- Devices and endpoints
- Pack
- Microsoft Zero Trust Assessment