Skip to main content

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\Enrollments with ProviderID = MS DM Server and EnrollmentState = 1. The previous detection matched any enrollment entry with an AADTenantID, 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 Contains True.
  • Detection now runs powershell.exe -NoLogo -NoProfile.

2025-04-10​

  • Initial version of the document