Skip to main content
Compliance & SyncIntune custom compliance code

Fix Intune Error 65008

A setting from the custom compliance JSON is missing in the script result — the script did not return that setting at all.

Open the log below first. It is the quickest way to confirm which of the causes applies before you change anything.

IntuneManagementExtension.log

Folder: C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\

Also check: AgentExecutor.log · Detection script output (the JSON the script returned) · Device compliance report (Intune admin center > Reports > Device compliance > Noncompliant devices and settings)

Root causes

  • The detection script does not output one of the settings defined in the JSON.
  • The setting name in the script differs from the JSON — casing or spelling.
  • The script’s code path skips the setting on this device.
  • The JSON defines a setting the script was never updated to return.

Step-by-step remediation

  1. Open the compliance report and note which setting is missing.
  2. Compare the setting names in the JSON with the keys the script returns — they must match exactly.
  3. Run the script locally and inspect the returned JSON for the missing key.
  4. Add the setting to the script output, or remove it from the JSON, then re-upload, sync the device and re-check.

For the full diagnosis around this error, read Intune Compliance Policy Not Evaluating: End-to-End Troubleshooting Checklist.

Tighten the rollout around it

Enrollment and compliance errors usually trace back to rollout design and device permissions. See how the endpoint privilege management tools compare, and start the next import from a clean Autopilot hardware-hash file.

Compare Intune endpoint privilege management tools

Other Compliance & Sync errors with their own runbooks.

Search all 46 error codes