In Microsoft Intune, a Device Query is commonly used to:
-
Filter or group devices dynamically
-
Audit device properties (like OS version, ownership, enrollment type)
-
Build Dynamic Azure AD device groups
-
Perform advanced troubleshooting with filters and reports
π Common Ways to Perform Device Queries in Intune
✅ 1. Use the Built-in Device Search
Navigation:
-
Go to Devices > All Devices
-
Use the Search box or Filters (OS, ownership, compliance, etc.)
✅ 2. Create a Dynamic Device Group Query (via Azure AD)
To group devices dynamically based on properties (e.g., OS, Autopilot enrollment), do this:
πΉ Steps:
-
Go to Intune Admin Center > Groups
-
Click + New group
-
Group type: Security
-
Membership type: Dynamic Device
-
Click Add dynamic query
πΉ Example Queries:
π Query: Windows 11 Devices
π Query: Autopilot Registered Devices
π Query: Devices with Corporate Ownership
π Query: Devices not compliant
✅ 3. Use Filters for App/Policy Targeting
When assigning apps or policies, you can use Intune Filters to include/exclude devices dynamically.
Example:
-
Filter: Only Windows 11 laptops
-
Create filter via:
-
Devices > Filters > + Create
-
Add rule:
-
Use this filter when assigning policies/apps.
✅ 4. Advanced Reports
Navigate to:
-
Reports > Endpoint Analytics or Device compliance
-
Export to Excel/CSV and use Power BI for custom queries.