I would like to obtain by a command prompt a list of all USB devices connected to my computer (O.S. Windows 10). I've googled to find such a command, but all results seems useless to me or worse workless. Does anybody know how can I do that?
Thank you
For Windows Users: Type CMD in the search box and click Run as Administrator from the menu. Enter the net view command to view devices connected to your network You will then see a list of devices connected to your network in the output.
In Device Manager, click View, and click Devices by connection. In Devices by connection view, you can easily see the USB Mass Storage device under the Intel® USB 3.0 eXtensible Host Controller category.
You can use the wmic command:
wmic path CIM_LogicalDevice where "Description like 'USB%'" get /value
With powershell, you can use the command :
Get-PnpDevice -PresentOnly | Where-Object { $_.InstanceId -match '^USB' }
You could use wmic command:
wmic logicaldisk where drivetype=2 get <DeviceID, VolumeName, Description, ...>
Drivetype 2 indicates that its a removable disk.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With