IntuneEnrolled
Summary
This role is responsible for determining whether a Windows machine is enrolled in Intune.
Dependencies
Settings
Role Name
IntuneEnrolled
Type
Intune
Sub-Type
Role
Detection String
{%@powershell.exe -NoLogo -NoProfile -Command "$ErrorActionPreference=\'SilentlyContinue\';$e=Get-ItemProperty \'HKLM:/SOFTWARE/Microsoft/Enrollments/*\' | Where-Object ProviderID -eq \'MS DM Server\' | Where-Object EnrollmentState -eq 1;@(\'False\',\'True\')[[bool]$e]"@%}
Comparator
Equals
Result
True
Applicable OS
Windows
Changelog
2026-10-27
- Detection now requires a completed Intune enrollment: an entry under
HKLM:\SOFTWARE\Microsoft\EnrollmentswithProviderID=MS DM ServerandEnrollmentState= 1. The previous detection matched any enrollment entry with anAADTenantID, regardless of MDM provider or enrollment state, so incomplete enrollment attempts and other MDMs were detected as Intune enrolled. - Comparator changed from Regex
[A-Z0-9]to ContainsTrue. - Detection now runs
powershell.exe -NoLogo -NoProfile.
2025-04-10
- Initial version of the document