--- title: "Investigate a User's Device Health and Performance via Intune" slug: "dex-wf-investigate-user-device-health" updated: 2026-11-30T16:15:23Z published: 2026-11-30T16:15:23Z canonical: "documentation.sysaid.com/dex-wf-investigate-user-device-health" --- > ## 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. # Investigate a User's Device Health and Performance via Intune Diagnose slowness complaints by pulling device specs, compliance state, and installed apps from Microsoft Graph. **Complexity:** Intermediate. **Impact:** troubleshooting + device-management + helpdesk + performance + intune. ## Why use this workflow When a user reports that their computer is slow, the fastest way to triage the issue remotely is to pull device telemetry from Intune instead of scheduling a session on the endpoint. Microsoft Graph exposes hardware specs (RAM, storage, model), OS version, encryption status, compliance and configuration policy state, last sync time, and detected apps. That is enough to form a hypothesis before you touch the device. This workflow covers a common helpdesk scenario: an IT admin receives a ticket such as *my laptop is crawling* and needs a structured, repeatable way to investigate without immediately dispatching a technician. Root causes this workflow can surface include under-provisioned virtual machines, low free disk space, missing Windows updates, unencrypted drives triggering compliance churn, or a detected app known to be resource-intensive. ### When to run it - A user reports sluggish performance, freezes, or long boot times. - You want to validate device specs against corporate hardware standards. - You need a pre-call triage summary before you start a remote session. - You are auditing a fleet for under-provisioned or legacy devices. ## Expected outcomes - A confirmed inventory record for the user's device (name, model, manufacturer, enrollment date, ownership type). - Key performance indicators: physical memory, total and free storage, OS build, last sync time. - Security posture: BitLocker or FileVault encryption status, compliance state, configuration profile coverage. - A list of detected apps installed on the device, useful for spotting known resource-heavy or unauthorized software. - A prioritized list of recommendations (for example, increase virtual machine RAM, enable BitLocker, remediate a compliance error) that you can paste into the ticket response. ## Risks and considerations ### Gotchas - **User Experience Analytics endpoints have limited filter support.** The `userExperienceAnalyticsDevicePerformance` endpoint does not accept `$filter` on `deviceId` or `deviceName` through Graph. Query the collection and filter client-side, or use the Endpoint analytics reports in the Intune admin center for that data. - **A compliance state of `compliant` can coexist with policy errors.** A device can report `complianceState: compliant` at the top level while individual policies are in an `error` state. Always inspect `deviceCompliancePolicyStates` and do not rely on the roll-up alone. - **`detectedApps` is paginated.** Use `@odata.nextLink` to enumerate all apps. - **Last sync time matters.** If `lastSyncDateTime` is more than 24 hours old, the data you are reading may be stale. Trigger a sync action before you draw conclusions. ### Privacy and compliance - Detected app inventory can include personal apps on BYOD devices. Respect your organization's BYOD privacy policy when you share this data. - Document the investigation in your ticketing system. Device inspection of a user's machine should be auditable. ## Required permissions | Permission | Why it's needed | | --- | --- | | User.Read.All | Resolve the user's object ID from their display name or UPN. | | DeviceManagementManagedDevices.Read.All | Read managed device properties (RAM, storage, OS, compliance, enrollment). | | DeviceManagementConfiguration.Read.All | Read compliance policy states and configuration profile states for the device. | | DeviceManagementApps.Read.All | Read the list of detected apps installed on the device. | ## Ask Dex Paste the prompt into a Dex conversation. ### Prompt for IT admins ``` Investigate device health and performance for {user}. Pull hardware specs (RAM, storage), OS version, compliance state, encryption status, last sync, and detected apps from Intune. Flag anything likely causing slowness and recommend fixes. ``` ### How an end user can ask Dex ``` My computer has been really slow lately - can you take a look? ``` ## Manual steps (admin center) 1. Sign in to the [Microsoft Intune admin center](https://intune.microsoft.com). 2. In the left navigation, go to **Users** > **All users**. Search for the affected user and open their profile. 3. In the user's profile, select **Devices**. Note the *Device name*, *OS*, and *Last check-in* for each managed device. 4. Select the device name to open its page. On the **Overview** tab, review the hardware model and manufacturer, OS version, primary user, compliance state, and last check-in. 5. Select **Hardware** in the device's left navigation. This is the most useful view for performance triage. Review: - **Total physical memory** (RAM). Consider flagging devices below 8 GB for knowledge workers. - **Total and free storage**. Consider flagging devices with less than 15% free. - **Encryption status** (BitLocker or FileVault). - **Processor** and **architecture**. 6. Select **Device compliance** to see which compliance policies apply and their state. Look for any policy in an *Error* state, not only *Not compliant*. 7. Select **Device configuration** to see applied configuration profiles and their state. 8. Select **Discovered apps** to see the installed software. Sort by size or look for known resource-intensive apps. 9. For deeper performance data, go to **Reports** > **Endpoint analytics** > **Startup performance**, **Application reliability**, or **Resource performance**. Find the device by name and review startup time, crash rate, and CPU and RAM history. 10. Summarize your findings in the ticket. If needed, trigger a **Sync** or **Restart** action from the top of the device page. ## Microsoft Graph API Run these calls in sequence. Replace the placeholder values as noted. ### 1. Resolve the user ``` GET https://graph.microsoft.com/v1.0/users?$filter=userPrincipalName eq '{user_upn}'&$select=id,displayName,userPrincipalName ``` Capture `id` from the response. This is your `{user_id}`. ### 2. List the user's managed devices ``` GET https://graph.microsoft.com/v1.0/users/{user_id}/managedDevices?$select=id,deviceName,operatingSystem,complianceState,lastSyncDateTime,model,manufacturer,totalStorageSpaceInBytes,freeStorageSpaceInBytes ``` Example response: ``` {  "value": [{    "id": "db25e629-e2f8-4a8e-ad4c-18d27cfa68c3",    "deviceName": "DESKTOP-PHSSKAD",    "operatingSystem": "Windows",    "complianceState": "compliant",    "lastSyncDateTime": "2026-02-21T10:37:45Z",    "model": "VMware7,1",    "totalStorageSpaceInBytes": 85248180224,    "freeStorageSpaceInBytes": 42253418496  }] } ``` Capture `id` as `{device_id}`. ### 3. Pull the full hardware and security profile (beta) ``` GET https://graph.microsoft.com/beta/deviceManagement/managedDevices/{device_id}?$select=id,deviceName,operatingSystem,osVersion,complianceState,lastSyncDateTime,managementAgent,model,manufacturer,enrolledDateTime,totalStorageSpaceInBytes,freeStorageSpaceInBytes,isEncrypted,managedDeviceOwnerType,deviceEnrollmentType,physicalMemoryInBytes ``` The `physicalMemoryInBytes` and `isEncrypted` fields are only available on the `/beta` endpoint. ### 4. Check compliance policy states ``` GET https://graph.microsoft.com/beta/deviceManagement/managedDevices/{device_id}/deviceCompliancePolicyStates ``` Flag any entry where `state` is not `compliant`. An `error` state often indicates a broken policy assignment or a missing platform setting. ### 5. Check configuration profile states ``` GET https://graph.microsoft.com/beta/deviceManagement/managedDevices/{device_id}/deviceConfigurationStates ``` ### 6. Enumerate detected apps (paginated) ``` GET https://graph.microsoft.com/beta/deviceManagement/managedDevices/{device_id}/detectedApps?$top=50 ``` Follow `@odata.nextLink` to get all pages. ### Interpreting the result - `physicalMemoryInBytes` below 8589934592 (8 GB): the device may be RAM-bound on Windows 10 or 11. - `freeStorageSpaceInBytes / totalStorageSpaceInBytes` below 0.15: low disk space can slow paging and updates. - `isEncrypted` equal to `false` on a corporate device: a security gap. Consider enabling BitLocker. - `lastSyncDateTime` older than 24 hours: the data may be stale. POST a `syncDevice` action. ## PowerShell The Microsoft Graph PowerShell SDK wraps the Graph calls above into cmdlets. This approach suits a reusable script you run from a helpdesk console. ### Prerequisites ``` # Install the SDK (one time) Install-Module Microsoft.Graph -Scope CurrentUser # Sign in with the required scopes Connect-MgGraph -Scopes "User.Read.All","DeviceManagementManagedDevices.Read.All","DeviceManagementConfiguration.Read.All","DeviceManagementApps.Read.All" ``` ### Walkthrough 1. **Resolve the user** from the UPN: ``` $user = Get-MgUser -Filter "userPrincipalName eq 'AlexW@contoso.com'" ``` 2. **List their managed devices**: ``` $devices = Get-MgUserManagedDevice -UserId $user.Id ``` 3. **Pull the full device profile** from the beta endpoint (needed for `physicalMemoryInBytes` and `isEncrypted`): ``` $deviceDetail = Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/beta/deviceManagement/managedDevices/$($devices[0].Id)" ``` 4. **Check the compliance and configuration states**, then **enumerate detected apps** and handle pagination. 5. **Apply thresholds** to produce a findings summary: RAM below 8 GB, free storage below 15%, encryption off, stale sync, and compliance errors.