mistaken4now 0 Posted June 16 Share Posted June 16 I am looking a way to keep two usb devices off (nuance powermics) when thier associated VM's are not running. These usb devices do not have unique pid & hid, so appear the same when searching for them, so I would have to be able to control the port they are connected to not look for the device itself. * A third device needs to always be active and available to the system. when autoit sees that the vm has launched it would then turn the appropriate usb port back on, so that the VM would pic up the device. any help would be greatly appreciated. *I have some scripting and programing experience, BUT NOT prior experience with windows hardware scripting or interaction. Link to post Share on other sites
TheXman 581 Posted June 16 Share Posted June 16 (edited) On 6/16/2022 at 2:06 PM, mistaken4now said: These usb devices do not have unique pid & hid I assure you that every USB device on a PC has a unique hardware/instance ID (hwid), including your Nuance PowerMics. For example, the partial list below was generated by devcon.exe, which is like a command line version of the Windows Device Manager. As you can see, although some devices have the same description/name, their hwid strings are unique. There are several ways to find the hwid of a particular device, class of devices, or all devices (WMI, devcon.exe, Device Manager, etc.). Once you have found the hwid's of interest, you can then use WMI, devcon.exe, or some other tool to programmatically control those devices. USB\ROOT_HUB20\4&372EDD1&0 : USB Root Hub USB\ROOT_HUB20\4&87F6B17&0 : USB Root Hub USB\VID_046D&PID_C52B&MI_00\6&FA89923&0&0000 : USB Input Device (Logitech Download Assistant) USB\VID_046D&PID_C52B&MI_01\6&FA89923&0&0001 : USB Input Device USB\VID_046D&PID_C52B&MI_02\6&FA89923&0&0002 : Logitech Unifying USB receiver USB\VID_046D&PID_C52B\5&2EBEBBA5&0&9 : USB Composite Device USB\VID_04F9&PID_0028\L5J156650 : USB Printing Support USB\VID_051D&PID_0002\5B0903T40493__ : American Power Conversion USB UPS USB\VID_0BDA&PID_0182\2010081A841300000 : Realtek USB 2.0 Card Reader USB\VID_0CF3&PID_E004\ALASKA_DAY_2006 : Dell Wireless 1703 Bluetooth USB\VID_1058&PID_1100\57442D574341534A30303738343831 : USB Mass Storage Device USB\VID_1A2C&PID_0002&MI_00\6&27BFCBB&0&0000 : USB Input Device USB\VID_1A2C&PID_0002&MI_01\6&27BFCBB&0&0001 : USB Input Device USBPRINT\BROTHERHL-2040_SERIES\6&7598FD6&2&USB001 : Brother HL-2040 Edited June 17 by TheXman About Me | CryptoNG UDF - Cryptography API: Next Gen | jq UDF - Powerful and Flexible JSON ProcessorHttpApi UDF - HTTP Server API | Roku Remote - Example Script If you want better answers, learn how to ask better questions or read How to Ask Questions in a Technical Forum. Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now