List Connected USB Devices
USB Connectors
Query
| where DeviceDescription has "ios"About this query
Explanation
This query is designed to provide an overview of USB devices connected to computers within a network. It focuses on identifying and counting the number of times each type of USB device has been connected. Here's a simple breakdown of what the query does:
-
Data Source: It starts by looking at device events, specifically those where a device has been connected (indicated by the action type "PnpDeviceConnected").
-
Extracting Information: The query extracts additional details about each connected device, such as the class name, device description, vendor IDs, and device ID, from a field called
AdditionalFields. -
Filtering for USB Devices: It filters the data to only include devices identified as USB by checking the beginning of the device ID.
-
Organizing Data: The query organizes the data to focus on key attributes like class name, type, description, vendor IDs, and device ID.
-
Summarizing Events: It counts how many times each type of USB device (based on its description) has been connected.
-
Sorting: Finally, it sorts the results by the number of connection events for each device type, providing a clear view of which USB devices are most frequently connected.
This query can help network administrators monitor USB device usage and potentially detect unauthorized or suspicious device connections. Additionally, you can filter the results further by specific device descriptions if needed.
Details

Bert-Jan Pals
Released: December 1, 2024
Tables
Keywords
Operators