Skip to content

Instantly share code, notes, and snippets.

@thebentern
Last active August 26, 2022 23:01
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save thebentern/07d9c682176654cfe0c1 to your computer and use it in GitHub Desktop.
Save thebentern/07d9c682176654cfe0c1 to your computer and use it in GitHub Desktop.
List connected USB devices with powershell
gwmi Win32_USBControllerDevice |%{[wmi]($_.Dependent)} | Sort Manufacturer,Description,DeviceID | Ft -GroupBy Manufacturer Description,Service,DeviceID
@exemartinez
Copy link

It doesn't returns the USD devices ID's; do you believe there is a way to get the identifiers?

@johnmorgan302
Copy link

Very nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment