Black Friday sale: an extra 40% off every course until Monday, November 30.New Year sale: an extra 30% off every course until Friday, January 1.Memorial Day sale: an extra 25% off every course until Monday, May 31.SysAdmin Day sale: an extra 25% off every course until Sunday, August 1.Back to School sale: an extra 25% off every course until Sunday, August 22.Labor Day sale: an extra 25% off every course until Monday, September 6.Black Friday sale: an extra 40% off every course until Monday, November 29.New Year sale: an extra 30% off every course until Saturday, January 1.Choose your certification →

Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

3.4.3. Device Query and Diagnostics Collection

💡 First Principle: Some problems need a live answer from one device ("which services are running right now?"), others need a fleet-wide answer from data already collected ("which devices have this BIOS version?"), and some need the raw logs for an engineer to read. Intune has a separate tool for each, and the right one depends on whether you need live, fleet-wide or forensic data.

Device query (single device) runs a real-time KQL query against one Windows device: Devices > Windows > select the device > Device Query (under Monitor) > enter the query > Run. It's an Advanced Analytics capability, and its requirements are specific: the device must be Intune-managed, marked corporate-owned and Entra joined or hybrid joined, and it must reach Windows Push Notification Services (WNS), without which the query fails. The admin needs a role with the Managed Devices/Query permission. You can query entities such as Process, WindowsService, WindowsEvent, WindowsRegistry, LocalUserAccount, Tpm, Certificate and FileInfo with operators like where, project, count, take and summarize:

Process
| take 20

Limits keep it lightweight: results are capped at 128 KB, input at 2,048 characters, and you can run 15 queries a minute. You can launch remote actions straight from the results, and Copilot in Intune can write the KQL from a plain-language request. Because it asks the device directly, a user with local admin rights could alter what the device reports.

Device query for multiple devices works on inventory already collected, not live data: Devices > Device query. It covers Windows, Android Enterprise corporate-owned devices (fully managed, dedicated and corporate-owned work profile), iOS/iPadOS and macOS, and the devices must be corporate-owned. Mobile and Mac inventory is collected automatically, but Windows devices need a properties catalog policy before they report anything. Results can be added straight to an Entra security group with Add all items to a group — handy for targeting a policy at exactly the devices a query found — or exported to CSV.

Single-device queryMulti-device query
DataLive, from the deviceCollected inventory
PlatformsWindowsWindows, Android, iOS/iPadOS, macOS
Windows prerequisiteWNS reachableProperties catalog policy
Limits15 queries/minute, 128 KB results10 queries/minute, 1,000/month, about 50,000 records, 3 joins
PermissionsManaged Devices/Query (custom role)Help Desk Operator, or Organization Read + Managed devices Read

Collect diagnostics gathers logs from a corporate-owned Windows device into a zip file: device > Collect diagnostics, then download from Monitor > Device diagnostics. It collects registry keys, command output (dsregcmd /status, ipconfig /all, mdmdiagnosticstool and more), event logs and Intune Management Extension and Windows Update logs — non-user locations only. Each collection is kept 28 days, up to 10 per device, and as a bulk action it's limited to 25 devices. It can't be triggered through Microsoft Graph directly, and it's on by default tenant-wide (Tenant administration > Device diagnostics), along with automatic log capture when an Autopilot deployment fails.

Diagnostics also work without enrollment for app protection: in Troubleshooting + support > Troubleshoot, select the user, then an app under App Protection > Checked-in > Collect diagnostics. It covers apps such as Outlook, Teams, OneDrive and Edge on Android and iOS, and needs an app protection policy assigned to the user.

The Troubleshooting pane is the help desk's starting point: search for a user and see their policies, compliance, app protection, apps, devices, groups and enrollment restrictions, with remediation steps for assignment problems and enrollment failures where they exist.

⚠️ Exam Trap: A single-device query that fails on one Windows laptop isn't necessarily a permissions problem. The device must be corporate-owned and able to reach WNS; a personally owned device, or a network that blocks WNS, makes device query fail regardless of the admin's role.

Reflection Question: You need a list of every corporate Windows and Android device with a specific BIOS or OS version, added to a group for a targeted policy. Which query tool do you use, what must be in place on the Windows devices first, and why wouldn't the single-device query work?

See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder•26 professional certifications earned