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
This question is related to
window
command-prompt
prompt
You can use the wmic command:
wmic path CIM_LogicalDevice where "Description like 'USB%'" get /value
You could use wmic command:
wmic logicaldisk where drivetype=2 get <DeviceID, VolumeName, Description, ...>
Drivetype 2 indicates that its a removable disk.
Source: Stackoverflow.com