I'm having trouble finding out how to do this particular thing. Can anyone help?
I want to use a Windows command prompt to enumerate, either to the console or to a text file, the available COM ports on the computer. I need the list to include the detailed description of the devices so that I can tell which ports belong to which pieces of plugged-in USB hardware. For instance, an Arduino Uno will have its name in the description along with the COM port number, or a USB GPS will say its brand and model in the description along with its COM port number.
Essentially, I want to do what
this does, but do it from a Windows command prompt.
The following command works:
msinfo32 /categories +Components /report report.txt
... but it takes forever to run, and the resulting file would take a ton of parsing to find the tiny thing I'm looking for.
Does anyone know if there is something simpler?