Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do I clean-up these in-use COM ports? enter image description here

The COM port numbers always seem to be taken up by something and although right now I only have 4 serial ports (3 over Bluetooth and one USB to RS-232), I have numerous COM ports set as in use. I'd like to clean that list up a bit.

Also it seems to me that from time to time, one of the taken COM ports gets freed up and then one of the devices I use will take that number creating confusion, since I'll have to go and hunt its com number in device manager.


Well I just cleaned up countless USB devices that once were connected to the computer using USBDeview and still the problem still remains.

share|improve this question

4 Answers 4

I found a useful answer here

  1. Click start → Run → type regedit and click OK button
  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\COM Name Arbiter
  3. Now on the right panel, you can see the key ComDB. Right-click it and click modify
  4. In value Data section select all and delete reset to Zero (0)
    Its 32 bytes with 8 bits in each byte. A set bit makes a port number (1...256) reserved. enter image description here
  5. Close Registry editor and then restart your computer. All COM ports are now Free.
    You may need to reinstall any USB-to-serial converter.
share|improve this answer
Welcome to superuser. I edited your answer and added some more details. Free feel to rollback your post if needed. –  nixda Jul 4 '13 at 21:40
Looks interesting! I'll try it out and report the results. –  AndrejaKo Jul 4 '13 at 21:44
No, I followed this exactly and it didn't remove any of them. –  Bob Brunius Feb 4 at 0:34

Run Device Manager from elevated command line:

> devmgmt.msc

Enable "Show hidden devices" in the menu, and uninstall grayed-out COM ports.

share|improve this answer
The hidden serial ports don't seem the be the main cause of the issue. As expected, I found numerous instances of serial ports created by my USB to RS-232 adapter, but even when they are cleaned up, I still have 11 extra COM ports set as in use. –  AndrejaKo Apr 5 '12 at 17:52
@AndrejaKo: Do you have any devices listed under "Modems"? They also take up 1 serial port each. –  grawity Apr 5 '12 at 17:54
Yes, but there's just one modem there. –  AndrejaKo Apr 5 '12 at 18:02

Resolving USB driver issues

Method Using Elevated Command Prompt

ie type cmd in search bar then right click cmd.exe selecting Run as Administrator

• 1st stage As discussed from command prompt type; set devmgr_show_non_present_devices=1 devmgmt.msc

    Under Ports (Com & LPT) delete all instances of  prolific USB to Serial Comm Port

• 2nd Stage Again from Elevated Command Prompt - Remove Driver Packages from drivers store. The driver store is a protected area of the computer that contains device driver packages that have been approved for installation on the computer

    You need to Identify OEM#.inf  where # is a number so type 
        pnputil.exe -e      (then enter)

    Read the entries in the output to find the description of your package(s) and its file name(s)

    Its highly likely you will have multiple entries from previous attempts.

Note all oem###.inf instances of the prolific driver where # (hash) is the number.

    To remove entries type:
        pnputil.exe -d  oem###.inf

(use space between exe & - and d & Oem then press enter) Remember to replace # with the number of the inf file you want to delete.

If the computer reports that the driver package is in use by a currently installed device, then you must either uninstall the device first, or use the -f on the pnputil command to force deletion of the package.

Also you may have driver package loaded on as program that may need removal using control panel/programs/uninstall a program.

If you do all that before loading the correct driver package and try to keep the Com device inserted in the same port rather than moving it around your ports you will have fewer problems with the Prolific driver.

share|improve this answer

I found the other solutions presented here did NOT work for me but I found a solution that DID work, here: http://theitbros.com/how-to-delete-com-ports-in-use

Here are the details:
- open Command Prompt (Start > Run) and type: cmd
- at the "C:...>" prompt type: set devmgr_show_nonpresent_devices=1
- start Device Manager (Computer > Properties > Hardware > Device Manager)
- select menu option View > Show hidden devices
- scroll down to Ports and uninstall any drivers blocking ports

This worked fine under Windows XP but I expect it to work just as well under Windows 7. Good luck.

share|improve this answer
That didn't work either. Just saying. The bogus ports still didn't show up –  Bob Brunius Feb 4 at 0:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.