4
2
We have a computer that's used to test some devices. Every once in a while, testers need to go in and remove the assigned COM ports so they free up and start back at 1. Lately, it's been assigning them the same COM port to a couple of devices (around 8 are connected at the same time) and also, they need to change the test code to match whatever number was assigned by the OS.
Duplicate numbers was the reported problem, but I see the 'having to check the COM ports and updating the code' multiple times a day as a problem too.
In Device Manager, if I turn on to show hidden devices, I see hundreds of them!
You can tell by the size of the scrollbar the list is pretty big. I can click at each one and uninstall, but that's insane going 1 by 1 which is why I ask for a command-line alternative, so I can write a script that they can double click when they need to reset the ports.
Of course, if there's some software out there that will allow for this to happen then that's good too.
that place you suggested in the registry does look like the place, but devcon seems more straight forward, I do see a long list of devices with devcon, but when i try the remove command i get 'Remove Failed' on all – geermc4 – 2013-02-07T00:29:52.907
@geermc4 port enumerate
devcon FindAll =Ports
ordevcon status @usb\*
? – STTR – 2013-02-07T00:32:26.4572those did work, just remove failed, I was trying with the old version link since it is a single smaller file to download, but now trying with the new version and that is working yay! – geermc4 – 2013-02-07T00:43:10.673
1@geermc4 Thx at good comment! Good Luck! – STTR – 2013-02-07T01:33:11.797