Windows – How to find the device which has Com Port X reserved – want to reclaim the port num for different device

serial portwindowswindows-registry

I added a 4 port pci serial card to my windows 7 PC. I want to assign them COM1-4.

I know how to change the COM Port Number when the com port number is not already in use.

In my case, COM4 is taken by something… probably some type of usb to serial device I connected at some point. If I knew what it was I could connect it and then change the com port through the Device Manager -> Ports -> dialogs.

But, I have no idea what the device has reserved com4. I'm assuming there is a registry setting or some device descriptor file somewhere that I need to remove. Can anyone point me in the right direction?

Best Answer

"Method Using Elevated Command Prompt"

From Start Menu type cmd into search bar right click on cmd.exe and select run as administrator

at UAC select yes to allow Windows Command Processor Program to make changes.

At the Command prompt type

SET DEVMGR_SHOW_NONPRESENT_DEVICES=1 (Followed by enter)

Then to open device manager type

DEVMGMT.MSC (Followed by enter)

In device Manager select View / Show hidden devices

Expand Ports (COM & LPT)

Hidden ports reserved will be shown with greyed out symbol & associated manufacturer / device type

screen shot device manager ports

To re-hide non present devices in future - from an elevated Command prompt type

SET DEVMGR_SHOW_NONPRESENT_DEVICES=0 (Followed by enter)

Related Question