Device Queries
- Click 'Assets' > 'Endpoint Intelligence' > 'Device Queries' to open this interface.
The screen is where you write a SQL query and send it to your devices. The query runs on each device you target and the results come back to this page.
You can limit the query to one or more platforms, target all devices or a chosen few, run the query now, and save it for later.

Choosing the target
| Option | Description |
| All Devices | Sends the query to every device that meets the platform filter. This is the default. |
| By Group | Reveals a 'Search groups…' box. The query goes to the devices in the groups you pick. |
| Specific Devices | Reveals a 'Search devices…' box. The query goes only to the devices you name. |


The buttons
| Button | Description |
| Run Query | Sends the query to the targeted devices and shows the results below the form. |
| Save Query | Stores the query so you can run it again from the 'Saved' panel. |
| Schema | Opens the schema reference down the right. See The Schema Reference. |
| Saved | Opens the panel of queries you have saved. Empty state: 'No saved queries yet.' |
| History | Opens the panel of queries you have run. Empty state: 'No query history yet.' |
Run a query against one group
- Click 'Assets' > 'Endpoint Intelligence' > 'Device Queries'.
- Click the platform buttons for the operating systems you want, or leave them all clear to query every platform.
- Replace the sample in 'SQL Query' with your own. Click 'Schema' if you need the table and column names.
- Click 'By Group' under 'TARGET DEVICES' and pick the groups in the 'Search groups…' box.
- Click 'Run Query'.
- Click 'Save Query' if it is one you will want again.
Note: 'Run Query' dispatches the query to live endpoints, so a broad query against every device takes time to come back and costs work on each machine. Target a group first.
