Check Intune Device Status and Recent Remote Actions

Prev Next

Look up a managed device in Microsoft Intune, review compliance and enrollment details, and verify whether any remote actions (wipe, retire, sync) are pending.

Complexity: Beginner. Impact: read-only + triage + device-support + help-desk.

Why use this workflow

Help desk and endpoint admins often need to answer a simple question: what is the current state of this device? A user may have reported a sync issue, a manager may be asking why a laptop shows as non-compliant, or you may need to confirm that a remote wipe you issued completed. The fastest way to get a definitive answer is to query Intune directly.

This workflow walks through the standard triage flow: locate a Windows, macOS, iOS, or Android device by name in Microsoft Intune, pull its compliance and hardware record, and inspect the deviceActionResults property for any remote actions (wipe, retire, sync, restart, locate, and others) that are pending, running, or recently completed.

Run this any time a ticket mentions a specific device, before escalating compliance questions, or as the first step in an investigation of a suspected lost or stolen endpoint.

Expected outcomes

After completing this workflow you will have:

  • The Intune managed device ID, Entra device ID, and serial number for the target device
  • Current compliance state, OS version, encryption status, and last check-in time
  • The primary user assigned to the device
  • A view of any remote actions that are pending, in progress, or recently completed (including wipe, retire, sync, restart, and fresh start)
  • Enough context to decide whether to escalate, retry an action, or close the ticket

Risks and considerations

Things to watch out for

  • Device name collisions: Windows auto-generated names are usually unique, but iOS and Android devices named after the user (for example, "Alex's iPhone") can match multiple records. Confirm with the serial number or primary user.
  • Stale data: The lastSyncDateTime value shows when the device last checked in with Intune. If it is old, the status you see may not reflect reality. Trigger a sync before making decisions.
  • Read-only operation: This workflow only reads device state. Follow-up actions (wipe, retire, reset passcode) require elevated permissions and are covered in separate workflows.
  • Action result history is limited: The deviceActionResults collection reflects recent and pending actions only. It is not a full audit log. Use the Intune audit logs or Entra sign-in logs for historical investigation.
  • PII exposure: Device records contain user UPN, email, serial number, and MAC addresses. Do not paste raw output into tickets or chat without redacting sensitive fields.

Required permissions

PermissionWhy it's needed
DeviceManagementManagedDevices.Read.AllRead managed device properties, compliance state, and deviceActionResults
DeviceManagementManagedDevices.ReadWrite.AllOnly required if you plan to trigger a sync or follow-up remote action after inspection

Ask Dex

Paste the prompt into a Dex conversation.

Prompt for IT admins

What is the current status of device {device_name} in Intune? Show compliance state, primary user, last check-in time, and any pending or recent remote actions (wipe, retire, sync).

How an end user can ask Dex

Can you check if my work laptop is still connected and in good standing? Its name is {device_name}.

Manual steps (admin center)

  1. Sign in to the Microsoft Intune admin center with an account that has at least the Help Desk Operator role.
  2. In the left navigation, go to Devices > All devices.
  3. In the search box above the device list, type the device name (for example, DESKTOP-GORGEOUS-OPTIMAL458) and press Enter. You can also filter by primary user, OS, or serial number.
  4. Click the matching device to open its overview.
  5. On the Overview tab, review the key status fields:
    • Compliance (Compliant, Not compliant, or In grace period)
    • Operating system and OS version
    • Primary user
    • Last check-in timestamp
    • Enrollment date and enrollment type
    • Encryption and Jailbroken/Rooted status
  6. Scroll to the Device actions status section on the Overview. It lists recent remote actions (Sync, Restart, Wipe, Retire, Fresh Start, Locate device, Reset passcode) with their state: Pending, Active, Complete, or Failed.
  7. If no entries appear, there are no recent or pending remote actions on record.
  8. Optional: click Hardware in the left pane for serial number, model, storage, and network details. Click Device compliance for the specific policies that contribute to the compliance result.

If you need the device to report fresh data before deciding on next steps, click Sync at the top of the device page and refresh.

Microsoft Graph API

All endpoints live under https://graph.microsoft.com. The deviceActionResults navigation property is exposed on the beta endpoint, so use /beta for the action-status call.

Step 1: Find the device by name

GET /beta/deviceManagement/managedDevices?$filter=deviceName eq 'DESKTOP-GORGEOUS-OPTIMAL458'

Example response (trimmed):

{
  "value": [
    {
      "id": "cea20c5f-54ee-44e6-9730-604c69a828f1",
      "deviceName": "DESKTOP-GORGEOUS-OPTIMAL458",
      "userPrincipalName": "alex@contoso.com",
      "operatingSystem": "Windows",
      "osVersion": "10.0.22631",
      "complianceState": "compliant",
      "lastSyncDateTime": "2026-03-04T10:13:10Z",
      "isEncrypted": true,
      "serialNumber": "SN2766LUHTM",
      "model": "Surface Laptop 5",
      "manufacturer": "Microsoft"
    }
  ]
}

If the device cannot be found by exact name, try a startswith filter or search by serialNumber:

GET /beta/deviceManagement/managedDevices?$filter=startswith(deviceName,'DESKTOP-')
GET /beta/deviceManagement/managedDevices?$filter=serialNumber eq 'SN2766LUHTM'

Step 2: Retrieve recent remote action results

Take the id from step 1 and request the deviceActionResults property explicitly:

GET /beta/deviceManagement/managedDevices/{managedDeviceId}?$select=id,deviceName,deviceActionResults

Example response when actions exist:

{
  "id": "cea20c5f-54ee-44e6-9730-604c69a828f1",
  "deviceName": "DESKTOP-GORGEOUS-OPTIMAL458",
  "deviceActionResults": [
    {
      "actionName": "wipe",
      "actionState": "pending",
      "startDateTime": "2026-03-05T09:12:00Z",
      "lastUpdatedDateTime": "2026-03-05T09:12:00Z"
    }
  ]
}

When deviceActionResults is empty or omitted from the payload, no recent or pending remote actions are recorded for the device.

Common actionState values

  • none: no action
  • pending: queued, waiting for the device to check in
  • canceled: canceled before execution
  • active: currently executing
  • done: completed successfully
  • failed: action failed, inspect device logs
  • notSupported: action is not supported on this platform

Step 3: (Optional) Trigger a sync

If lastSyncDateTime is stale, queue a check-in so later reads are accurate:

POST /beta/deviceManagement/managedDevices/{managedDeviceId}/syncDevice

The call returns 204 No Content on success. The action appears in deviceActionResults until it completes.

PowerShell

The Microsoft.Graph.Beta.DeviceManagement module exposes cmdlets for both the device record and its action results. If the module is not installed, run Install-Module Microsoft.Graph.Beta -Scope CurrentUser once.

Quick interactive check

# Connect with read-only scope
Connect-MgGraph -Scopes "DeviceManagementManagedDevices.Read.All" -NoWelcome

# Find device by name
$device = Get-MgBetaDeviceManagementManagedDevice -Filter "deviceName eq 'DESKTOP-GORGEOUS-OPTIMAL458'"

# Show key status fields
$device | Select-Object DeviceName, UserPrincipalName, OperatingSystem, OsVersion,
    ComplianceState, LastSyncDateTime, IsEncrypted, SerialNumber, Model

# Retrieve device action results (requires $select on beta)
$detail = Get-MgBetaDeviceManagementManagedDevice -ManagedDeviceId $device.Id `
    -Property "id,deviceName,deviceActionResults"

$detail.DeviceActionResults | Format-Table ActionName, ActionState, StartDateTime, LastUpdatedDateTime

What you see

  • If the device has no recent remote actions, DeviceActionResults is an empty array.
  • A pending wipe or retire appears with ActionState = 'pending' until the device checks in and runs it.
  • Failed actions appear as ActionState = 'failed'. Inspect the device's event logs or MDM diagnostics for the root cause.