'How can I retrieve the Full COM-Port name as displayed in the device manager?

Every other Windows update junks the COM-Port list and the new COM-Port Numbers need to be matched up. Already have a script in place to ping all the current ports - see what it returns and assign accordingly.

Issue is certain Bluetooth devices create a COM-Port and if Filemaker (Clients platform) tries to ping said port, crashes.

However all Bluetooth devices appear as Standard Serial Over Bluetooth link

Is there anyway I can pull this information out as a txt file or similar so I can avoid pinging Bluetooth devices? I have a feeling this can be done through Command Prompt just havnt found it

I have mucked around with editing the registry through scripts in the past, and I know the location of the COM ports.

Just need to export out from \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\COM Name Arbiter\Devices



Solution 1:[1]

Type this in a command prompt:

wmic path Win32_SerialPort get caption, name, deviceID

So you would be able to identify each COM port (friendly name), and the associated device. I have only one COM, with the same string for both caption and name, so you may probably remove one of the two in the command line.

It can also be done programmatically by using Win32 API, if needed.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Wisblade