Skip to main content
Microsoft IntuneIntermediate

Intune Compliance Policy Not Evaluating: End-to-End Troubleshooting Checklist

Microsoft IntuneEntra IDWindows 11
Jack HadcroftChecked against Microsoft documentationPublished 18 min read
Checked against Microsoft Learn on 26 November 2026What changed

Scope updated to Windows 11 26H2 and 26H1; added custom-compliance 65007–65010 section, Conditional Access consequence box, and the 8-hour reporting delay. Reviewed against Microsoft Learn compliance documentation, 25 November 2026. Corrected per-policy Graph reporting, grace-period status, sync guidance, BitLocker restart requirements, diagnostic ZIP collection and Microsoft Learn links. Added an interactive diagnostic wizard, 26 November 2026.

Restart
Restart sometimes needed
Risk
Medium

Quick answer

Intune Compliance Policy Not Evaluating: End-to-End Troubleshooting Checklist

Usually one of four things: the device has not checked in recently enough, the policy is not assigned to this device, one setting cannot be measured on this device, or the device is in a grace period.

  • Stale Last check-in: sync, then re-check the compliance state after 5–10 minutes.
  • Assignment: confirm the device is listed in the policy's Device status, checking include and exclusion groups.
  • One setting reported Not evaluated or Error: check that setting's prerequisites on the device.
  • Grace period: a device can be noncompliant-but-allowed until its noncompliance actions bite.

Log to open first: Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider/Admin

Start here: first three checks

  1. Check Last check-in. If it is stale, sync and re-check the compliance state after 5–10 minutes.
  2. Open the policy's Device status and confirm the device is listed, checking include and exclusion groups.
  3. Find the specific setting reported as Not evaluated or Error and check its prerequisites.
Work through the full diagnosis
Jump to section20 sections

When to Use This Guide

Use this guide when a Windows device managed by Microsoft Intune shows Not evaluated, In grace period, Error, or a compliance state that does not match what you expect on the device.

Common examples:

  • The device is online and syncing, but compliance stays Not evaluated.
  • Sync in the Intune admin centre succeeds, but compliance does not update.
  • Conditional Access blocks access because the device is noncompliant, but the portal shows a different state.
  • One setting in a compliance policy shows Error while the rest look fine.
  • A newly enrolled device never moves out of Not evaluated after Autopilot or manual enrolment.
  • Compliance worked yesterday, but a policy change or assignment change broke evaluation.
  • The device appears compliant in Intune, but Entra sign-in still fails the Require compliant device grant control.

The useful question is not "is the policy assigned?" It is "has this device checked in recently enough for Intune to evaluate the assigned policy, can each setting be measured on this device, and is the result tied to the correct device object?"

For wider context, see the Intune hub, Microsoft Entra ID hub, and Conditional Access Microsoft 365 Policy Map.

Scope and Assumptions

This guide is written for Windows 10 22H2 and Windows 11 23H2, 24H2, 25H2, 26H1 and 26H2 devices enrolled in Microsoft Intune. It covers Microsoft Entra joined, Microsoft Entra hybrid joined, and co-managed Windows devices where Intune compliance is expected to feed Conditional Access.

Windows 11 23H2 is now out of updates (Enterprise and Education received their last update on 10 November 2026 — see the 23H2 end-of-updates move-off guide). A 23H2 device that is non-compliant because it is behind on updates is a move-off problem, not a compliance-evaluation problem.

It focuses on compliance evaluation timing, assignment scope, per-setting failures, grace periods, MDM sync health, local Windows evidence, and stale Entra or Intune device records.

It does not cover iOS, Android, macOS, or Configuration Manager-only compliance except where co-management affects Intune evaluation.

Useful Microsoft references:

Prerequisites

Before troubleshooting one device, confirm the basics:

  • You can find the device in Intune admin centre > Devices > Windows devices.
  • You know the expected user, device name, serial number, and Entra device ID.
  • The device is enrolled in Intune MDM, not only registered in Entra ID.
  • The device has a valid Intune licence through the user, device licence, or another supported licensing model.
  • The device is online with a correct system clock.
  • You have local administrator rights for registry, event log, and diagnostic collection on the device.
  • You have Intune permissions to read compliance status and, if needed, trigger remote sync.

Do not start by deleting the device record. If you remove the wrong object before collecting evidence, you can make assignment, Autopilot, BitLocker recovery, and Conditional Access investigations harder.

Symptoms

SymptomFirst place to check
Compliance shows Not evaluatedLast check-in, policy assignment, tenant default compliance setting
One setting shows ErrorPer-setting evaluation blade, prerequisites for that setting
Device shows In grace periodActions for noncompliance, grace period configuration
CA blocks but Intune looks compliantSign-in logs, device ID mismatch, stale device object
Compliance never updates after enrolmentMDM enrolment completion, IME health, first sync timing
Only some devices in a group failDynamic group membership, exclusion groups, OS version split
Custom compliance script failsScript exit code, JSON schema, assignment to correct platform

If the device is not checking in at all, use Intune Device Not Syncing first. If only a Win32 app is stale while compliance is current, use Win32 app install diagnosis. Stay on this guide when compliance evaluation itself is failing.

The Four Root Causes

When Intune reports a device as Not evaluated or stuck in a compliance state that does not reflect reality, it is almost always one of these four things:

  1. The device has not synced recently enough — Intune compliance evaluation requires a recent check-in.
  2. The compliance policy is not assigned to the device or user — assignment scope mismatch or exclusion group.
  3. The compliance policy has a setting that cannot be evaluated — usually a missing prerequisite or unsupported platform state.
  4. The device is in a grace period or has a noncompliance action configured — the portal shows the grace state, not an evaluation failure.

Work through the checks below in order.

Interactive diagnosis

Find the failing step: compliance not evaluating

Pick the state Intune shows. Each answer narrows it to one of the four usual causes — stale check-in, assignment, an unmeasurable setting, or a grace period.

What does the device’s compliance state show?

Every path and answer — open to browse without JavaScript

What does the device’s compliance state show?

  • Not evaluated

    When did the device last check in?

    Check Last check-in on the device overview blade, or Sync status in Settings > Accounts > Access work or school.

    • Stale, or I have not synced since the change

      Sync, then wait — compliance is not instantaneous

      Compliance evaluation follows MDM check-in and policy processing. Sync the device, wait 5–10 minutes and re-check. Allow up to 8 hours: the Intune Management Extension checks for new or updated scripts every eight hours and compliance evaluation runs on the same cadence, so a device fixed an hour ago can still show its old state. If the state has not moved after 8 hours and a fresh sync, it is a real failure, not a delay.

      Collect MDM diagnostics before changing assignments
      PowerShell
      $logPath = "C:\Temp\IntuneDiag"
      New-Item -ItemType Directory -Path $logPath -Force | Out-Null
      mdmdiagnosticstool.exe -area "DeviceEnrollment;DeviceProvisioning" -zip "$logPath\diag.zip"
    • Current — synced in the last few minutes

      Is the device listed in the policy’s Device status?

      Devices > Compliance policies > the policy > Device status.

      • Not listed

        The policy is not assigned to this device

        Check the assignment: is the policy assigned to a group, is the device or the enrolled user a member of that group, and is the device in an exclusion group? Confirm the policy platform matches the device OS. Also check the tenant default under Endpoint security > Device compliance > Compliance policy settings: if “Mark devices with no compliance policy assigned as” is set to Not compliant, devices without an assigned policy fail Conditional Access even when individual settings look healthy.

      • Listed, but the state is wrong

        Which setting is failing?

        • BitLocker or Secure Boot

          BitLocker and Secure Boot are measured at boot

          BitLocker state is measured at boot by Device Health Attestation, so a device that has just finished encrypting needs a restart before it reports compliant — then sync so it can report. Fully Encrypted does not establish that protectors are active or a recovery key is backed up, so check the recovery key escrow before a restart or firmware change.

          Encryption and protection status
          CMD
          manage-bde -status C:
          Secure Boot state (True when enabled on supported UEFI hardware)
          PowerShell
          Confirm-SecureBootUEFI
        • Custom compliance script (error 65007–65010)

          Custom compliance failed with 65007–65010

          These four codes are the fastest diagnosis in the whole guide. 65007: the discovery script failed on the device — run it there in the same context and bitness and fix the script, not the policy. 65008: the output has no key matching SettingName — compare spelling and case letter by letter, and make every branch return every required setting. 65009: the output is not valid one-line JSON, or it was truncated — end every script with return $hash | ConvertTo-Json -Compress, remove debug text from standard output, and keep output well below 2,048 characters. 65010: the value’s type does not match the rule’s DataType — return JSON booleans and numbers as native values, not strings.

          Open this

          • C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\IntuneManagementExtension.log
          • C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\AgentExecutor.log
          Validate the discovery script locally before re-uploading
          PowerShell
          powershell.exe -NoProfile -File "C:\Path\Detect-Compliance.ps1"
          echo $LASTEXITCODE
        • Another setting (antivirus, OS version, Defender for Endpoint)

          Open the per-setting evaluation blade

          Open the device, then Monitor > Device compliance, expand the policy and read the per-setting results — do not guess from the aggregate state. Check that setting’s prerequisites on the device: Defender onboarding and sensor reporting for Defender for Endpoint, antivirus reporting state, and the OS build the rule expects. If a rule names a maximum OS version or build, check it against the device’s actual build: a rule written for 26200 (Windows 11 25H2) will fail a 26300 (Windows 11 26H2) device that is otherwise healthy.

  • One setting shows Error

    Which setting is failing?

  • In grace period

    In grace period is working as intended

    A grace period delays the configured mark-noncompliant action, so the device shows as In grace period during the window — this is not an evaluation failure. Check the policy’s Actions for noncompliance for the configured grace period (default 0 days, immediate noncompliance). Access continues during the grace period, and another failed policy can still block access, so inspect the aggregate device compliance state and sign-in result before closing the ticket.

  • Compliant in Intune, but Conditional Access still blocks

    Conditional Access reads a different device object

    Compliance is a measurement, not an enforcement control: Conditional Access turns the status into an allow or a block by reading the isCompliant boolean Intune writes to the device object in Entra ID. If Intune says compliant but access is blocked, open the sign-in in the Entra sign-in logs, read its Conditional Access result, and check the device ID matches — a stale device object after re-enrolment is the usual cause. Do not treat “Not evaluated” and “Non-compliant” as the same state.

Check 1: Last Sync Time

On the device, open Settings > Accounts > Access work or school > [account] > Info. Scroll down to Sync status. Note the time of the last sync and trigger one manual sync here if it is stale relative to your change.

Alternatively, from Intune:

  1. Navigate to Devices > [device name]
  2. Check Last check-in timestamp
  3. If stale, click Sync to push a sync request

After sync, wait 5–10 minutes and re-check the compliance state. Compliance evaluation is not instantaneous; it follows MDM check-in and policy processing.

Allow up to 8 hours. The Intune Management Extension checks for new or updated scripts every eight hours, and compliance evaluation runs on the same cadence. A device you fixed an hour ago can still show its old state. Do not re-run the whole diagnosis because the portal has not caught up — sync the device, wait, and re-check. If the state has not moved after 8 hours and a fresh sync, then it is a real failure, not a delay.

If sync does not improve the state, collect MDM diagnostics before changing assignments:

PowerShell
$logPath = "C:\Temp\IntuneDiag"
New-Item -ItemType Directory -Path $logPath -Force | Out-Null
mdmdiagnosticstool.exe -area "DeviceEnrollment;DeviceProvisioning" -zip "$logPath\diag.zip"

Expected result shape: a .zip file under C:\Temp\IntuneDiag containing MDM event logs and enrolment state.

Check 2: Policy Assignment

  1. In the Intune portal, navigate to Devices > Compliance policies > [policy name] > Device status
  2. Search for the device. If it does not appear, the policy is not assigned to this device.
  3. Check the assignment: Is the policy assigned to a group? Is the device or the enrolled user a member of that group?
  4. Check for conflicting exclusion groups — the device may be in a group that is excluded from the policy.
  5. Confirm the policy platform matches the device OS. The Windows 10 and later platform includes Windows 11; inspect individual setting applicability and minimum/maximum OS constraints.

If an expected user or device is absent from a dynamic assignment group, use Entra dynamic group diagnosis before changing the compliance policy.

Tenant default: no policy means compliant

A device with no assigned compliance policy defaults to compliant at the tenant level unless you changed Endpoint security > Device compliance > Compliance policy settings.

Verify the tenant default:

  1. Go to Endpoint security > Device compliance > Compliance policy settings
  2. Review Mark devices with no compliance policy assigned as
  3. If this is set to Not compliant, devices without an assigned policy will fail Conditional Access even when individual settings look healthy

This is a common source of "why is this kiosk noncompliant when I never assigned a policy?" confusion.

Check 3: Evaluate the Specific Setting

If the policy is assigned and the device has synced but a specific setting is showing Not evaluated or Error:

  1. Click the device in the Intune portal and navigate to Monitor > Device compliance
  2. Open the policy and expand per-setting evaluation results
  3. Note any settings showing Error, Not evaluated, or Not applicable

Common problematic settings:

SettingCommon issue
Require BitLockerBitLocker state is measured at boot by Device Health Attestation, so a device that has just finished encrypting needs a restart before it reports compliant.
Require Secure BootVM, legacy BIOS, or firmware without UEFI
AntivirusDefender not reporting to Intune yet; third-party AV not in supported state
OS minimum versionDevice on older build; feature update ring not applied
Microsoft Defender for EndpointOnboarding incomplete; sensor not reporting
Custom compliance scriptWrong exit code, invalid JSON, or script not assigned to platform

If a compliance rule names a maximum OS version or build, check it against the device's actual build. A rule written for 26200 (Windows 11 25H2) will fail a 26300 (Windows 11 26H2) device that is otherwise healthy.

Before a restart or firmware change, use BitLocker recovery key escrow diagnosis if the current recovery protector has no matching Entra backup; encryption compliance alone does not prove recoverability.

BitLocker and Secure Boot prerequisites

If BitLocker is required, confirm encryption state locally:

PowerShell
manage-bde -status C:

Check both Conversion Status and Protection Status. Fully Encrypted does not establish that protectors are active or a recovery key is backed up.

BitLocker state is measured at boot by Device Health Attestation, so after encryption finishes, restart the device, then sync so it can report compliant; see Windows compliance settings.

If Secure Boot is required on physical hardware, confirm in firmware and OS:

PowerShell
Confirm-SecureBootUEFI

Expected result is True when Secure Boot is enabled on supported UEFI hardware. Supported virtual machines can also use Secure Boot; investigate their configuration before considering a scoped exception.

Custom compliance failed with 65007–65010

Custom compliance is the one compliance failure that has its own error codes, and they are the fastest diagnosis in the whole guide. If a custom-compliance setting shows an error code in Reports > Device compliance > Reports tab > Noncompliant devices and settings, start here — do not re-run the general four-cause checklist first.

CodeMeaningUsual causeFix
65007Script returned failureThe discovery script failed on the device — non-zero exit, or the script blew upRun the script on the device in the same context and bitness it runs under Intune. Fix the script, not the policy.
65008Setting missing in the script resultThe output has no key matching SettingNameCompare spelling and case in the script and the JSON rules file, letter by letter. SettingName is case-sensitive. Check every branch of the script returns every required setting.
65009Invalid JSON for the discovered settingThe output is not valid one-line JSON, or it was truncatedThe Windows discovery script must return one compressed line of JSON. Its last line should be `return $hash \
65010Invalid datatype for the discovered settingThe value's type does not match the rule's DataTypeReturn JSON booleans and numbers as native values, not strings: true, not "true". Use a compatible date or version format, not locale-dependent text.

The three rules that prevent most of these:

  1. One line, compressed, last. End every Windows discovery script with return $hash | ConvertTo-Json -Compress. Anything printed after that line, or any debug text on standard output, breaks the JSON.
  2. Short output. Scripts and their output are capped at 1 MB each, and on Windows a discovery script must finish in 10 minutes or less. In practice, keep the output well below 2,048 characters — Microsoft's own documentation warns that output above that may be truncated, which produces invalid JSON and error 65009.
  3. Every branch returns every setting. A script that exits early on one branch, or that only returns a setting when a condition is met, produces 65008 on the devices that took the other branch.

Where to look: the Intune Management Extension runs discovery scripts and checks for new or updated scripts every eight hours. The IME writes to C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\ — IntuneManagementExtension.log for policy processing and reporting, AgentExecutor.log for PowerShell script runs. A code in the report plus an IME log entry for the same run is the complete evidence; either one alone is a guess.

Each of these four codes is also in the Intune error code lookup (65007, 65008, 65009, 65010), added in the Phase 2 expansion.

Check 4: Grace Period and Noncompliance Actions

If the compliance state shows a yellow status or In grace period:

  1. Navigate to the compliance policy > Actions for noncompliance
  2. Check the configured grace period. Default is 0 days (immediate noncompliance).
  3. If a grace period is set, the device shows as In grace period during the window — this is working as intended, not an evaluation failure.

Document the grace period before escalating to the security team. A grace period delays the configured mark-noncompliant action. Inspect the aggregate device compliance state and sign-in result; another failed policy can still block access. See actions for noncompliance.

What each state actually does to access

Compliance is a measurement, not an enforcement control. Intune evaluates a device and reports one status. Conditional Access is what turns that status into an allow or a block, by reading the isCompliant boolean Intune writes to the device object in Entra ID. A compliance policy on its own denies nobody anything.

Device stateWhat Conditional Access seesWhat the user experiences
CompliantisCompliant = trueAccess allowed, if the CA policy's other conditions pass.
Non-compliantisCompliant = falseA CA policy with the Require device to be marked as compliant grant control blocks access to the resources it covers.
In grace periodStill treated as compliant until the grace period expiresAccess continues during the grace period. The grace period is the admin-set window for the user to fix the device — it is not a failure, and it is not permanent.
Not evaluatedNo compliance verdict yetAccess depends on the CA policy and the tenant default below. A device that has never been evaluated has not been found non-compliant — it has not been evaluated at all. Do not treat "Not evaluated" and "Non-compliant" as the same state.

The tenant default that catches admins out: under Endpoint security > Device compliance > Compliance policy settings, the setting "Mark devices with no compliance policy assigned as" ships set to Compliant (the default). A device with no compliance policy targeted at it reports compliant, writes true to Entra ID, and satisfies a CA policy that requires a compliant device — having been evaluated against nothing.

Microsoft's recommendation, where Conditional Access depends on compliance, is to change this setting to Not compliant, so only devices confirmed as compliant can access resources. Do this deliberately, not on a Friday: flipping it makes every enrolled device without a targeted policy non-compliant at once. Stage it behind a report-only Conditional Access policy, and only after at least some devices are reporting compliant. See the Conditional Access Microsoft 365 Policy Map for how the policies fit together.

The other tenant-wide setting to know: compliance status validity period, default 30 days (adjustable 1–120 days). A device that has not reported within the window is treated as non-compliant regardless of what it last reported.

Portal Evidence Collection

Before changing policy, capture portal evidence for the incident record:

FieldWhere to find it
Device name and serialDevices > Windows devices > [device]
Last check-inDevice overview blade
Assigned compliance policiesDevice > Monitor > Device compliance
Per-setting stateCompliance policy > Device status > [device]
Group membershipEntra ID > Devices or Users > member of
CA resultEntra ID > Sign-in logs > Conditional Access

Export device compliance for bulk comparison when more than one device is affected:

  1. Reports > Device compliance > Compliance policy device status
  2. Filter by the affected policy
  3. Export to CSV and sort by Compliance state

Graph API Checks

Use Microsoft Graph PowerShell when you need evidence at scale or the portal view is incomplete.

Graph PowerShellReplace 2 placeholders
Connect-MgGraph -Scopes "DeviceManagementManagedDevices.Read.All","DeviceManagementConfiguration.Read.All"

$deviceName = "<device-name>"
$device = Get-MgDeviceManagementManagedDevice -ManagedDeviceId "<verified-intune-managed-device-id>" -ErrorAction Stop

$device | Select-Object deviceName, complianceState, lastSyncDateTime, managementAgent, operatingSystem, osVersion

Expected output shape:

Text
deviceName        : <name>
complianceState   : noncompliant | compliant | inGracePeriod | unknown
lastSyncDateTime  : <timestamp>
managementAgent   : mdm | eas | configurationManagerClient

Read per-policy status counts such as PendingCount, SuccessCount, FailedCount, ErrorCount, ConflictCount and NotApplicableCount when you know the policy ID (this is not a device list):

Graph PowerShellReplace 1 placeholder
$policyId = "<compliance-policy-id>"
Get-MgDeviceManagementDeviceCompliancePolicyDeviceStatusOverview -DeviceCompliancePolicyId $policyId

The old Get-MgDeviceManagementDeviceCompliancePolicyDeviceStateSummary cmdlet takes no policy ID and returns a tenant-wide summary.

If Graph shows a different compliance state than the portal, wait 10 minutes and refresh both. Eventual consistency between reporting surfaces is normal.

Event Log and Registry Evidence

On the device, MDM policy processing is recorded under:

Applications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostics-Provider

Useful event patterns:

Event patternLikely meaning
Event ID 404CSP setting failed to apply or report
Event ID 814PolicyManager setting information; read the actual message, not an assumed conflict
Enrollment failures in Admin logMDM channel unhealthy — fix sync first

Check whether compliance-related CSP state exists:

PowerShell
Get-ChildItem "HKLM:\SOFTWARE\Microsoft\PolicyManager\current\device" -ErrorAction SilentlyContinue |
    Select-Object -First 10 PSChildName

If PolicyManager is empty and MDM enrolment looks incomplete, return to Intune Device Not Syncing.

Custom Compliance Scripts

Custom compliance policies depend on a detection script returning valid JSON. Common failure modes:

  • Script exits non-zero even when detection succeeds
  • JSON schema does not match Microsoft requirements
  • Script runs in user context when it needs SYSTEM context
  • Assignment targets the wrong platform or architecture

Validate locally before re-uploading:

PowerShell
powershell.exe -NoProfile -File "C:\Path\Detect-Compliance.ps1"
echo $LASTEXITCODE

A custom compliance discovery script returns a single compressed JSON object containing discovered values. Intune compares those values with the uploaded JSON rules. It does not use exit 1 for compliant and exit 0 for noncompliant; do not copy the Remediations exit-code contract here. Validate successful script execution and JSON keys, types and values against Microsoft’s custom discovery-script requirements. Keep diagnostic chatter out of standard output.

Safe Retry and Recovery

Use the smallest change that restores evidence-backed compliance reporting.

  1. Trigger one manual sync from the portal and one from the device.
  2. Wait 10 minutes and re-check per-setting evaluation.
  3. If one setting is wrong, test a pilot exclusion for that setting on a lab device before changing production policy.
  4. If the device object is stale after re-enrolment, compare Entra device ID with the active Intune managed device record before deleting anything.
  5. If you must retire and re-enrol, document BitLocker recovery key location and Autopilot assignment impact first.

Do not widen policy exceptions tenant-wide as a first response. Fix assignment, sync, or the failing setting on a named pilot group instead.

Prevention Checks

After recovery, add these checks to change control:

  • Every compliance policy has an owner, assignment description, and exception expiry where needed.
  • Pilot groups exist for new BitLocker, Secure Boot, and minimum OS version requirements.
  • Conditional Access policies that require compliant devices exclude break-glass accounts correctly.
  • New Autopilot profiles include enough time for first compliance evaluation before user reaches production apps.
  • Custom compliance scripts are version-controlled and their JSON output is validated against the policy rule schema.

Correction record

9 November 2026: Corrected the per-policy Graph cmdlet and counts, clarified the tenant-wide summary cmdlet, used the portal grace-period status, removed the fixed sync threshold, clarified BitLocker restart and sync requirements, changed diagnostic collection to ZIP and updated Microsoft Learn links.

Jack Hadcroft, Endpoint Specialist and author of AdminSignal

Jack Hadcroft

LinkedIn

Endpoint Specialist and author of AdminSignal

Technical claims are reviewed against current Microsoft documentation. Lab or tenant checks are named only when they were done.

Independent publication. About · Editorial policy