locked
ManagementPath for a specif USB Hub Device RRS feed

  • Question

  • How do I write/format the following as a correct Management Path? I tried the following, but that does not work.

    ManagementPath p =
    	new ManagementPath(
    	"\\\\computer-name\\root" +
    	$"\\cimv2:Win32_UsbHub.DeviceID=\"{usbPnpDevId}\"");
    

    The USB PNP DeviceID would be something like:

    USB\\VID_0451&PID_DD01\\6&16FAF918&1&2

    • Moved by Bill_Stewart Wednesday, December 12, 2018 6:11 PM Unanswerable drive-by question
    Friday, August 17, 2018 10:54 PM

All replies