locked
USB Device connection information RRS feed

  • 问题

  • please help

    i'm using powershell on windows 7 and i want to get the device path from an external usb hub's port to an attached USB device. powershell is great in reporting back a ton of information but it does not show which hub/port that a device is attached to. basically id' like to get back the same information that UsbTreeView returns but via console so that i can write an automated script that calls the powershell command like below.

    powershell -command "& {get-wmiobject -class Win32_USBControllerDevice -computername "LocalHost" -namespace "root\CIMV2" }"

    Thanks

    2020年7月20日 18:15

全部回复