Check Windows Patch Status and Update Compliance for an Intune-Managed Device

Prev Next

Verify whether a user's workstation has received the latest Windows security updates and is running a supported OS version.

Complexity: Intermediate. Impact: patch-compliance + vulnerability-management + device-support + end-of-life-os.

Why use this workflow

When an end user asks whether their computer is patched, or reports concerns about a recent Patch Tuesday release, IT admins need a reliable way to verify the OS build, last check-in time, and compliance state of a specific Intune-managed device. This workflow walks through the diagnostic path: identify the device, read its current OS build, compare that build against Microsoft's published Windows release information, and decide whether the device is up to date or running a version that has reached End of Updates.

When to run this

  • A user asks whether their workstation received the latest Patch Tuesday update
  • You suspect a device is stuck on an unsupported OS version
  • You need to triage compliance failures related to the Minimum OS version setting
  • You run periodic patch-compliance spot checks during vulnerability review

Expected outcomes

  • The exact OS version and build number running on the target device
  • The device's last Intune check-in timestamp
  • Its Intune compliance state and any failing compliance settings
  • A determination of patched, behind on updates, or running an end-of-life OS
  • A next-action recommendation (sync the device, deploy a feature update, or escalate for an OS upgrade)

Risks and considerations

  • The deviceConfigurationStates endpoint may return an empty array even when update policies are assigned. This can happen when the device has not reported state back yet, or when the tenant uses Windows Update for Business policies, which surface under a different endpoint.
  • Compliance state can be misleading. A device reporting compliant can still run an unsupported OS if no Minimum OS version compliance rule exists. Always cross-check the raw osVersion against Microsoft's release data.
  • Build numbers alone do not prove patch level. Compare the build against the Windows 11 release information page to find which update a given build corresponds to.
  • Do not force a feature update on a device without checking app compatibility and user notification policies first.
  • Avoid sharing the user's UPN, device ID, or compliance output in tickets visible to non-IT staff. Device metadata is typically covered by data-handling policies.

Required permissions

PermissionWhy it's needed
DeviceManagementManagedDevices.Read.AllRead managed device inventory, OS version, and last sync timestamp
DeviceManagementConfiguration.Read.AllRead configuration and update policy states applied to the device
User.Read.AllResolve the user's UPN to find their assigned devices

Ask Dex

Paste the prompt into a Dex conversation.

Prompt for IT admins

Check whether {user}'s workstation is patched for the most recent Patch Tuesday. Pull the device from Intune, report the OS build, last sync time, and compliance state, and tell me if it's current, behind, or running an end-of-life Windows version.

How an end user can ask Dex

Is my computer up to date with the latest Windows security updates?

Manual steps (admin center)

  1. Sign in to the Microsoft Intune admin center as a Global Administrator or Intune Administrator.
  2. Go to Devices > All devices.
  3. In the search box, enter the user's name, UPN, or the device name (for example, DESKTOP-8ADV83V). Select the device to open its overview.
  4. On the Overview tab, record the OS and OS version (for example, Windows 11, 10.0.22000.2538), the Last check-in time, and the Compliance state.
  5. Open the Hardware tab for full device details, including manufacturer and model.
  6. Open the Device compliance tab. Review each assigned compliance policy's state, and expand any that show Error or Not compliant to see the failing setting.
  7. Cross-reference the OS build against the Windows 11 release information page (or the Windows 10 equivalent). Confirm that:
    • The Windows version is still supported.
    • The build number matches or exceeds the most recent Patch Tuesday build for that version.
  8. If the build is behind, go to Devices > Monitor > Windows Expedited update failures report, or Reports > Windows updates, to see why the update has not installed.
  9. If the OS version has reached End of Updates, plan a feature update under Devices > Windows > Feature updates for Windows 10 and later.

Microsoft Graph API

Use these Graph calls in order. All endpoints below use the beta endpoint because several device management fields are not yet in v1.0.

1. Resolve the device by user

GET https://graph.microsoft.com/beta/deviceManagement/managedDevices?$filter=userPrincipalName eq '{user_upn}'&$select=id,deviceName,operatingSystem,osVersion,lastSyncDateTime,complianceState,model,manufacturer

Response shape:

{
  "value": [{
    "id": "652ccfc3-35b7-4964-88b7-dc488b62a5b9",
    "deviceName": "DESKTOP-8ADV83V",
    "operatingSystem": "Windows",
    "osVersion": "10.0.22000.2538",
    "complianceState": "compliant",
    "lastSyncDateTime": "2026-02-12T05:14:22Z"
  }]
}

2. Check compliance policy states

GET /beta/deviceManagement/managedDevices/{device_id}/deviceCompliancePolicyStates

3. Check configuration and update policy states

GET /beta/deviceManagement/managedDevices/{device_id}/deviceConfigurationStates

$filter is not supported on this endpoint. A request that uses it returns HTTP 501. Filter client-side.

4. Interpret the OS build

Compare the returned osVersion (for example, 10.0.22000.2538) against Microsoft's Windows release information. The build prefix identifies the Windows 11 version:

Build prefixWindows 11 version
22000.x21H2
22621.x22H2
22631.x23H2
26100.x24H2
26200.x25H2

Check the support status of each version on the Windows release information page. A device is patched for a given month if its build revision number meets or exceeds the build published on Patch Tuesday for that month.

PowerShell

Use the Microsoft.Graph.DeviceManagement module. Install it once:

Install-Module Microsoft.Graph.DeviceManagement -Scope CurrentUser

Approach

  1. Connect to Graph with the minimum required scopes:
    Connect-MgGraph -Scopes "DeviceManagementManagedDevices.Read.All","DeviceManagementConfiguration.Read.All","User.Read.All"
  2. Resolve the target user's managed devices.
  3. Pull the OS version, last sync time, and compliance state.
  4. Compare the build against a map of Windows 11 versions that are currently supported (maintain this map from Microsoft's release information).
  5. Output a verdict: Patched, Behind, or End-of-Life OS.