问题
its my first question on stackoverflow so I'm sorry if I don't do that properly. Coming to my question, 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
回答1:
you can download USBview and get all the information you need. Along with the list of devices it will also show you the configuration of each device.
回答2:
You can use the wmic command:
wmic path CIM_LogicalDevice where "Description like 'USB%'" get /value
回答3:
You could use wmic command:
wmic logicaldisk where drivetype=2 get <DeviceID, VolumeName, Description, ...>
Drivetype 2 indicates that its a removable disk.
来源:https://stackoverflow.com/questions/44433346/cmd-command-to-check-connected-usb-devices