DEV Community

Bryz︱🦾
Bryz︱🦾

Posted on

🚫 "Device Not Compliant"? Find the Real Reason Before You Wipe It

You know the ticket. A user can't open Outlook or Teams, and there's a scary banner: "Your device does not meet your organization's compliance requirements." 😩

The tempting move is to reset the laptop. Don't. Compliance in Intune isn't random. It's a checklist, and the device failed one specific item. Your job is to find which one.

🔄 Step 1: Force a check-in

The device may already be fixed and just hasn't reported in. Make it check in now.

From Company Portal:

Company Portal > Devices > (select the device) > Check access
Enter fullscreen mode Exit fullscreen mode

From Windows Settings:

Settings > Accounts > Access work or school > (work account) > Info > Sync
Enter fullscreen mode Exit fullscreen mode

Give it a few minutes. Status doesn't always flip instantly. ⏳

🔍 Step 2: Read the exact failed setting

If you have admin access, stop guessing:

Intune admin center > Devices > All devices > (device) > Device compliance
Enter fullscreen mode Exit fullscreen mode

Click the policy and it shows each setting and whether it passed. Now you know exactly what to fix.

Prefer PowerShell? With the Microsoft Graph PowerShell SDK:

Connect-MgGraph -Scopes "DeviceManagementManagedDevices.Read.All"
Get-MgDeviceManagementManagedDevice -Filter "deviceName eq 'PC-01'" |
  Select-Object DeviceName, ComplianceState, LastSyncDateTime
Enter fullscreen mode Exit fullscreen mode

An old LastSyncDateTime is a clue too: the device just isn't checking in.

🛠️ Step 3: Fix the usual suspects

Most compliance failures come down to a few things:

  • ⏳ Pending updates or a restart. Install updates and actually restart (not just shut the lid).
  • 🔒 BitLocker not enabled. Check with:
manage-bde -status C:
Enter fullscreen mode Exit fullscreen mode
  • 🪟 OS version below the minimum. Check with winver and update.
  • 🔑 No password or PIN set when the policy requires one.

✅ Step 4: Sync again and confirm

After the fix, run Check access or Sync again, then confirm the status in Company Portal or the admin center. Have the user sign out and back in to their apps if access still looks blocked.

💡 The habit

When a device says "not compliant," read the checklist before you reach for the reset button. It saves the user hours and saves you a re-image. 🙌

What's the most common compliance fail you run into? Drop it in the comments 👇

Top comments (0)