Produce a cross-platform fleet health report covering slow devices, storage pressure, stale sync, policy conflicts, and prioritized remediations from Microsoft Intune and Endpoint Analytics.
Complexity: Intermediate. Impact: fleet-health + reporting + endpoint-analytics + device-compliance + remediation-planning.
Why use this workflow
IT leadership and device support teams regularly need a single, defensible view of fleet health: not one device at a time, but the whole estate. Endpoint Analytics and Intune expose many signals (boot time, app reliability, storage, compliance state, policy conflicts), but the data is scattered across different Graph endpoints and the Intune admin center. This workflow stitches those signals together into one fleet-level summary with a ranked remediation list.
When to run this
- Monthly or quarterly device health review
- Before a Windows feature update or major OS upgrade wave
- When leadership asks how the fleet is doing and you need a data-backed answer
- After a large enrollment event (acquisition, new office, refresh cycle)
- When user-reported performance complaints start trending up
What it solves
Replaces ad-hoc spreadsheet pulls and manual portal navigation with a repeatable fleet summary that surfaces the highest-impact issues (low storage, unencrypted devices, stale sync, policy conflicts) and turns them into prioritized actions.
Expected outcomes
- A fleet-wide inventory summary (total devices, OS breakdown, ownership split)
- Compliance health: compliant, non-compliant, in grace period, and unknown counts, with a sample of offenders
- Configuration policy health: success, error, conflict, and not-applicable counts per policy, with failing policies ranked by impact
- Endpoint Analytics performance data (where enrolled): device scores, boot-time outliers, startup performance
- A list of low-storage devices (under 10% free)
- A list of stale devices (30+ and 90+ days since last sync) for retirement or cleanup
- A count of unencrypted devices for security remediation
- A ranked remediation plan (Critical, High, Medium) that you can hand to a tech lead or leadership
Risks and considerations
- Endpoint Analytics may not be enrolled. Several endpoints (
userExperienceAnalyticsBaselines,userExperienceAnalyticsDeviceScores,userExperienceAnalyticsDeviceStartupHistory) can return empty arrays or errors if the tenant has not onboarded Endpoint Analytics or devices have not yet uploaded telemetry. Fall back to managed-device data when this happens. Do not assume an empty result means a healthy fleet. - Android work-profile storage reporting can be misleading. Many Android Enterprise work-profile devices report 0 GB free because the value reflects only the work-profile partition, not the whole device. Validate a sample before you create tickets for a large number of out-of-storage Android devices.
- Not applicable is not a failure. A configuration policy showing devices as not applicable usually means the policy is platform-scoped (for example, a Windows-only policy and iOS devices). Do not flag these as broken.
- Stale sync can mean retired hardware. Before you act on devices with a long gap since last sync, check whether they have been formally decommissioned.
- Do not auto-wipe based on this report. This is a read-only audit. Wipes and retires belong in a separate, deliberate workflow with approval.
- Permission scopes. You need at least
DeviceManagementManagedDevices.Read.AllandDeviceManagementConfiguration.Read.All. Consent prompts may list additional scopes depending on the Endpoint Analytics resources you query.
Required permissions
| Permission | Why it's needed |
|---|---|
| DeviceManagementManagedDevices.Read.All | Read managed device inventory, compliance state, storage, encryption status, and Endpoint Analytics device data |
| DeviceManagementConfiguration.Read.All | Read device configuration policies and their device-state summaries to identify conflicts and failures |
Ask Dex
Paste the prompt into a Dex conversation.
Prompt for IT admins
Generate a fleet-level Intune device performance and UX summary covering slow devices, low storage, stale sync, unencrypted devices, compliance state, and config/compliance policy health. Rank the top remediation actions by impact and output a report I can share with leadership.
Manual steps (admin center)
Use this path when you want a visual read and are comfortable moving through several pages of the admin center.
1. Fleet overview
Microsoft Intune admin center > Devices > Overview
Capture total enrolled devices, enrollment failures, platform breakdown, and the compliance status chart.
2. Endpoint analytics scores
Reports > Endpoint analytics > Overview
Capture the top-level score and the subscores for Startup performance, Application reliability, and Work from anywhere. If the page shows Not enrolled or Not enough data, skip the Endpoint analytics sections and note it in your report.
3. Startup performance (boot times)
Reports > Endpoint analytics > Startup performance > Device performance
Sort by Boot time in descending order and export the slowest devices to CSV.
4. Application reliability
Reports > Endpoint analytics > Application reliability
Identify apps with the highest crash and hang counts across the fleet.
5. Device compliance
Devices > Monitor > Device compliance
Note the compliant and non-compliant counts. Open the non-compliant view to export the list.
6. Configuration profile health
Devices > Monitor > Assignment failures
Lists profiles with failed or conflicted assignments and the affected device counts. Policy conflicts surface here.
7. Devices with issues
Devices > Monitor > Devices with restart issues, Noncompliant devices, and Devices without compliance policy
Each page gives you a focused slice of problem devices.
8. Storage and stale sync
Devices > All devices, then add the columns Free storage space and Last check-in.
Sort by free storage (ascending) and by last check-in (ascending) to surface low-storage and stale devices. Export to CSV.
9. Build the summary
In Excel or Google Sheets, combine the exports into one workbook and produce: OS breakdown, compliance percentage, slowest boot-time devices, low-storage devices, stale devices (30+ and 90+ days), top failing policies, and a prioritized remediation list (Critical, High, Medium).
Microsoft Graph API
A handful of Graph calls to the Intune deviceManagement namespace assemble the summary. The examples use the beta endpoint because many Endpoint Analytics resources are exposed there.
1. Request the scopes
Scopes: DeviceManagementManagedDevices.Read.All, DeviceManagementConfiguration.Read.All2. Fleet overview
GET https://graph.microsoft.com/beta/deviceManagement/managedDeviceOverviewReturns enrolledDeviceCount, mdmEnrolledCount, dualEnrolledDeviceCount, and a deviceOperatingSystemSummary object with per-OS counts.
3. All managed devices (paginated)
GET https://graph.microsoft.com/beta/deviceManagement/managedDevices?$top=100&$select=id,deviceName,userPrincipalName,userDisplayName,operatingSystem,osVersion,complianceState,managedDeviceOwnerType,model,manufacturer,totalStorageSpaceInBytes,freeStorageSpaceInBytes,lastSyncDateTime,isEncryptedFollow @odata.nextLink until it is absent. Compute OS counts, compliance counts, storage percentage, stale-sync buckets, and encryption status.
4. Configuration policy health summary
GET https://graph.microsoft.com/beta/deviceManagement/deviceConfigurationDeviceStateSummariesReturns fleet-wide totals: compliantDeviceCount, nonCompliantDeviceCount, errorDeviceCount, conflictDeviceCount, and notApplicableDeviceCount.
5. Per-policy configuration status
GET https://graph.microsoft.com/beta/deviceManagement/deviceConfigurations?$select=id,displayName
GET https://graph.microsoft.com/beta/deviceManagement/deviceConfigurations/{id}/deviceStatusOverviewIterate the policies and pull the overview for each. Flag any with failedCount, errorCount, or conflictCount greater than 0.
6. Compliance policies
GET https://graph.microsoft.com/beta/deviceManagement/deviceCompliancePolicies?$select=id,displayName
GET https://graph.microsoft.com/beta/deviceManagement/deviceCompliancePolicies/{id}/deviceStatusOverview7. Endpoint Analytics (if enrolled)
GET https://graph.microsoft.com/beta/deviceManagement/userExperienceAnalyticsBaselines
GET https://graph.microsoft.com/beta/deviceManagement/userExperienceAnalyticsDeviceScores?$top=50&$orderby=endpointAnalyticsScore asc
GET https://graph.microsoft.com/beta/deviceManagement/userExperienceAnalyticsDeviceStartupHistory?$top=100&$orderby=totalBootTimeInMs descThese can return empty arrays or errors if Endpoint Analytics is not onboarded. Handle that gracefully and fall back to device-derived performance signals (low storage, stale sync).
8. Detected apps (optional)
GET https://graph.microsoft.com/beta/deviceManagement/detectedApps?$top=20&$orderby=deviceCount descUseful for identifying fleet-wide outdated or suspect software.
Example response fragment: managedDeviceOverview
{
"enrolledDeviceCount": 600,
"mdmEnrolledCount": 321,
"deviceOperatingSystemSummary": {
"windowsCount": 287,
"iosCount": 166,
"androidCount": 147
}
}
PowerShell
Prerequisites
- The
Microsoft.GraphPowerShell module (Install-Module Microsoft.Graph -Scope CurrentUser) - Permission to consent to
DeviceManagementManagedDevices.Read.AllandDeviceManagementConfiguration.Read.All - PowerShell 7 or later (recommended)
Approach
- Connect to Graph with the required scopes:
Connect-MgGraph -Scopes "DeviceManagementManagedDevices.Read.All","DeviceManagementConfiguration.Read.All" - Pull the managed device overview and every managed device (paginated).
- Pull the configuration and compliance policies, and each policy's device status overview.
- Attempt the Endpoint Analytics calls and handle not-enrolled errors gracefully.
- Compute the OS breakdown, compliance percentage, low-storage devices (under 10% free), stale devices (30 and 90 days), unencrypted devices, and failing policies.
- Write the fleet summary to the console, and export CSV files for non-compliant devices, low-storage devices, stale devices, and failing policies.
On first run you are prompted to consent to the two scopes.