PowerShell

PowerShell: List all USB-Devices

This blog post will be a short one. I will show you how to list all USB-Devices on your computer. We will use PowerShell for this task, what else?

Here it is:

# List USB Devices
Get-PnpDevice -PresentOnly | Where-Object {$_.InstanceId -match '^USB'} | Select-Object Status,Present,Class,FriendlyName,Service,InstanceId |
Format-Table -AutoSize -Wrap

Could you have imagined that it would be so easy? No?

3 replies »

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.