Intune Compliance Policy Not Evaluating: End-to-End Troubleshooting Checklist
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.
- Check first
- Check Last check-in. If it is stale, sync and re-check the compliance state after 5–10 minutes.
- 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
- Check Last check-in. If it is stale, sync and re-check the compliance state after 5–10 minutes.
- Open the policy's Device status and confirm the device is listed, checking include and exclusion groups.
- Find the specific setting reported as Not evaluated or Error and check its prerequisites.
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:
- Device compliance policies in Intune
- Monitor device compliance
- Create custom compliance policies
- Sync your Windows device manually
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
| Symptom | First place to check |
|---|---|
| Compliance shows Not evaluated | Last check-in, policy assignment, tenant default compliance setting |
| One setting shows Error | Per-setting evaluation blade, prerequisites for that setting |
| Device shows In grace period | Actions for noncompliance, grace period configuration |
| CA blocks but Intune looks compliant | Sign-in logs, device ID mismatch, stale device object |
| Compliance never updates after enrolment | MDM enrolment completion, IME health, first sync timing |
| Only some devices in a group fail | Dynamic group membership, exclusion groups, OS version split |
| Custom compliance script fails | Script 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:
- The device has not synced recently enough — Intune compliance evaluation requires a recent check-in.
- The compliance policy is not assigned to the device or user — assignment scope mismatch or exclusion group.
- The compliance policy has a setting that cannot be evaluated — usually a missing prerequisite or unsupported platform state.
- 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
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:
- Navigate to Devices > [device name]
- Check Last check-in timestamp
- 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:
$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
- In the Intune portal, navigate to Devices > Compliance policies > [policy name] > Device status
- Search for the device. If it does not appear, 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?
- Check for conflicting exclusion groups — the device may be in a group that is excluded from the policy.
- 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:
- Go to Endpoint security > Device compliance > Compliance policy settings
- Review Mark devices with no compliance policy assigned as
- 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:
- Click the device in the Intune portal and navigate to Monitor > Device compliance
- Open the policy and expand per-setting evaluation results
- Note any settings showing Error, Not evaluated, or Not applicable
Common problematic settings:
| Setting | Common issue |
|---|---|
| Require BitLocker | 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. |
| Require Secure Boot | VM, legacy BIOS, or firmware without UEFI |
| Antivirus | Defender not reporting to Intune yet; third-party AV not in supported state |
| OS minimum version | Device on older build; feature update ring not applied |
| Microsoft Defender for Endpoint | Onboarding incomplete; sensor not reporting |
| Custom compliance script | Wrong 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:
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:
Confirm-SecureBootUEFIExpected 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.
| Code | Meaning | Usual cause | Fix |
|---|---|---|---|
| 65007 | Script returned failure | The discovery script failed on the device — non-zero exit, or the script blew up | Run the script on the device in the same context and bitness it runs under Intune. Fix the script, not the policy. |
| 65008 | Setting missing in the script result | The output has no key matching SettingName | Compare 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. |
| 65009 | Invalid JSON for the discovered setting | The output is not valid one-line JSON, or it was truncated | The Windows discovery script must return one compressed line of JSON. Its last line should be `return $hash \ |
| 65010 | Invalid datatype for the discovered setting | The value's type does not match the rule's DataType | Return 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:
- 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. - 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.
- 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:
- Navigate to the compliance policy > Actions for noncompliance
- Check the configured grace period. Default is 0 days (immediate noncompliance).
- 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 state | What Conditional Access sees | What the user experiences |
|---|---|---|
| Compliant | isCompliant = true | Access allowed, if the CA policy's other conditions pass. |
| Non-compliant | isCompliant = false | A CA policy with the Require device to be marked as compliant grant control blocks access to the resources it covers. |
| In grace period | Still treated as compliant until the grace period expires | Access 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 evaluated | No compliance verdict yet | Access 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:
| Field | Where to find it |
|---|---|
| Device name and serial | Devices > Windows devices > [device] |
| Last check-in | Device overview blade |
| Assigned compliance policies | Device > Monitor > Device compliance |
| Per-setting state | Compliance policy > Device status > [device] |
| Group membership | Entra ID > Devices or Users > member of |
| CA result | Entra ID > Sign-in logs > Conditional Access |
Export device compliance for bulk comparison when more than one device is affected:
- Reports > Device compliance > Compliance policy device status
- Filter by the affected policy
- 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.
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, osVersionExpected output shape:
deviceName : <name>
complianceState : noncompliant | compliant | inGracePeriod | unknown
lastSyncDateTime : <timestamp>
managementAgent : mdm | eas | configurationManagerClientRead 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):
$policyId = "<compliance-policy-id>"
Get-MgDeviceManagementDeviceCompliancePolicyDeviceStatusOverview -DeviceCompliancePolicyId $policyIdThe 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 pattern | Likely meaning |
|---|---|
| Event ID 404 | CSP setting failed to apply or report |
| Event ID 814 | PolicyManager setting information; read the actual message, not an assumed conflict |
| Enrollment failures in Admin log | MDM channel unhealthy — fix sync first |
Check whether compliance-related CSP state exists:
Get-ChildItem "HKLM:\SOFTWARE\Microsoft\PolicyManager\current\device" -ErrorAction SilentlyContinue |
Select-Object -First 10 PSChildNameIf 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.exe -NoProfile -File "C:\Path\Detect-Compliance.ps1"
echo $LASTEXITCODEA 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.
- Trigger one manual sync from the portal and one from the device.
- Wait 10 minutes and re-check per-setting evaluation.
- If one setting is wrong, test a pilot exclusion for that setting on a lab device before changing production policy.
- If the device object is stale after re-enrolment, compare Entra device ID with the active Intune managed device record before deleting anything.
- 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.
Related Resources
- Intune Device Not Syncing
- Autopilot Enrollment Status Page Stuck
- Deploying Windows LAPS with Microsoft Intune
- Conditional Access Microsoft 365 Policy Map
- Rolling Out Microsoft Defender for Endpoint with Intune
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.
Keep going
- Got an error code from this failure? Look it up in the Intune & ConfigMgr error code lookup — the log to open, its folder, and the fix order.
- Error codes from this failure: 0x87D1FDE8, 65007, 65008, 65009, 65010 — each with its own runbook page.
- Related guide: Intune device not syncing
Jack Hadcroft
LinkedInEndpoint 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