--- title: "Trigger an Intune Device Sync/Check-in and Verify Status" slug: "dex-wf-trigger-intune-device-sync" updated: 2026-11-30T16:15:20Z published: 2026-11-30T16:15:20Z canonical: "documentation.sysaid.com/dex-wf-trigger-intune-device-sync" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.sysaid.com/llms.txt > Use this file to discover all available pages before exploring further. # Trigger an Intune Device Sync/Check-in and Verify Status Force a managed device to check in with Intune immediately when policies or updates aren't landing. **Complexity:** Beginner. **Impact:** device-management + troubleshooting + intune + end-user-support. ## Why use this workflow When an end user reports that they aren't receiving expected Intune policies, configuration profiles, apps, or compliance updates, a common first-line remediation is to force the device to check in with the Intune service. Managed devices check in on a schedule, and a manual sync removes the wait for the next scheduled check-in. This workflow walks through identifying a user's managed device, issuing the remote `syncDevice` action, and verifying that the check-in completed. ### When to run this - A user reports missing apps, Wi-Fi or VPN profiles, or certificates pushed from Intune - Compliance policy changes aren't reflected on the device - You have just assigned a new configuration profile and want to validate deployment - You are troubleshooting a stale `lastSyncDateTime` value ## Expected outcomes ### After completing this workflow you will have: - Located the target user's managed devices in Intune - Issued a remote sync command that forces an MDM check-in - Confirmed the command was accepted by the Intune service (HTTP 204) - Verified the device's updated `lastSyncDateTime` and current compliance state - A status report you can share with the requester ## Risks and considerations ### Things to watch for - **The device must be online.** The sync command is a push notification. If the device is offline, powered off, or on a restricted network, the action queues but does not complete until the device connects. - **`lastSyncDateTime` lag.** The timestamp in Graph can take a while to update after the device checks in. Do not treat a stale timestamp as a failure immediately. - **`deviceActionResults` behavior.** The `syncDevice` action may not always appear in the `deviceActionResults` array. Use `lastSyncDateTime` as the signal that the check-in happened. - **A sync does not fix enrollment issues.** If the device is unenrolled, has a broken trust relationship, or the MDM agent is corrupted, a sync will not help. You need to re-enroll the device. - **Avoid repeated syncs.** Do not loop sync commands against the same device. Send one sync, wait, then re-check before you retry. ## Required permissions | Permission | Why it's needed | | --- | --- | | User.Read.All | Resolve the target user's UPN and object ID from their display name | | DeviceManagementManagedDevices.Read.All | Query managed device inventory and read compliance and sync state | | DeviceManagementManagedDevices.PrivilegedOperations.All | Execute the syncDevice remote action against a managed device | ## Ask Dex Paste the prompt into a Dex conversation. ### Prompt for IT admins ``` {user} isn't receiving Intune policies or updates. Trigger an immediate Intune sync/check-in on their managed device(s), verify the check-in completed, and report the current compliance state and last-sync timestamp. ``` ### How an end user can ask Dex ``` My work laptop isn't getting the latest company settings or apps from IT - can you push them to me now? ``` ## Manual steps (admin center) 1. Sign in to the [Microsoft Intune admin center](https://intune.microsoft.com) with an account that has at least the *Intune Administrator* or *Help Desk Operator* role. 2. Go to **Devices** > **All devices**. 3. In the search box, enter the user's name or device name (for example, `Alex Wilber` or `DESKTOP-PHSSKAD`) and select the target device from the list. 4. On the device overview page, note the current **Last check-in** timestamp and **Compliance** state as a baseline. 5. In the command bar at the top of the device page, select **Sync**. On narrow layouts it may be under the **...** overflow menu. 6. Confirm the action in the prompt. A notification confirms that the sync action was initiated. 7. Wait a few minutes, then refresh the device page and confirm that the **Last check-in** timestamp has advanced. 8. Optionally, review the **Device configuration** and **Device compliance** tabs to confirm that assigned policies now show as *Succeeded*. ### Alternative: end-user-initiated sync On a Windows device, the user can also sync themselves: **Settings** > **Accounts** > **Access work or school** > **Connected account** > **Info** > **Sync**. This is useful if you can't reach the device remotely. ## Microsoft Graph API The flow is: find the user, find their device, issue the sync, then verify. ### 1. Find the user ``` GET https://graph.microsoft.com/v1.0/users?$filter=startswith(displayName,'{displayName}')&$select=id,displayName,userPrincipalName ``` Example response: ``` {  "value": [{    "id": "12a7116b-bbad-4f0a-9738-2fd51b2509ee",    "displayName": "Alex Wilber",    "userPrincipalName": "AlexW@contoso.onmicrosoft.com"  }] } ``` ### 2. List the user's managed devices ``` GET https://graph.microsoft.com/beta/deviceManagement/managedDevices?$filter=userPrincipalName eq '{upn}'&$select=id,deviceName,operatingSystem,complianceState,lastSyncDateTime,managementAgent,model ``` Capture the device `id`, a GUID such as `db25e629-e2f8-4a8e-ad4c-18d27cfa68c3`. ### 3. Trigger the sync ``` POST https://graph.microsoft.com/beta/deviceManagement/managedDevices/{deviceId}/syncDevice ``` No request body is required. A successful response is `HTTP 204 No Content`, which means Intune accepted the command and queued it for delivery to the device. ### 4. Verify ``` GET https://graph.microsoft.com/beta/deviceManagement/managedDevices/{deviceId}?$select=id,deviceName,complianceState,lastSyncDateTime,deviceActionResults ``` Inspect `lastSyncDateTime`. It should advance if the device is online. The `deviceActionResults` array sometimes contains a `syncDevice` entry with `actionState: done`, but do not rely on that alone. Treat the timestamp as the authoritative signal. ### Required permissions - `User.Read.All` - `DeviceManagementManagedDevices.Read.All` - `DeviceManagementManagedDevices.PrivilegedOperations.All` ## PowerShell The Microsoft Graph PowerShell SDK wraps the Graph endpoints above into cmdlets. The key cmdlet is `Sync-MgBetaDeviceManagementManagedDevice`. ### Prerequisites ``` Install-Module Microsoft.Graph.Beta.DeviceManagement.Actions -Scope CurrentUser Install-Module Microsoft.Graph.Beta.DeviceManagement -Scope CurrentUser Install-Module Microsoft.Graph.Users -Scope CurrentUser ``` ### Connect with the right scopes ``` Connect-MgGraph -Scopes "User.Read.All","DeviceManagementManagedDevices.Read.All","DeviceManagementManagedDevices.PrivilegedOperations.All" ``` ### Look up, sync, and verify ``` # 1. Resolve the user $user = Get-MgUser -Filter "displayName eq 'Alex Wilber'" # 2. Get their managed devices $devices = Get-MgBetaDeviceManagementManagedDevice -Filter "userPrincipalName eq '$($user.UserPrincipalName)'" # 3. Trigger sync on each foreach ($d in $devices) {    Sync-MgBetaDeviceManagementManagedDevice -ManagedDeviceId $d.Id    Write-Host "Sync triggered for $($d.DeviceName)" } # 4. Wait, then re-read lastSyncDateTime Start-Sleep -Seconds 120 Get-MgBetaDeviceManagementManagedDevice -ManagedDeviceId $devices[0].Id |    Select-Object DeviceName, ComplianceState, LastSyncDateTime ```