Removing unused COM Ports from Windows

Whenever a new USB serial device is plugged into a PC, Windows will assign the device a new, unique COM Port number. This could even happen if the same device is plugged into a different USB port.
 
If you are prototyping or experimenting with different USB devices, this can cause the COM Port numbers to become quite large over time. Although there is no reduced performance associated with high COM Port numbers, you may wish to have a specific COM Port number assigned to a specific interface board.
 
This guide shows instructions on how to remove and change COM Port Assignments in Windows 7. Because the process requires you to enter the Device Manager, caution is advised.

Show all Com Port Assignments

  1. Open a Command Prompt window and type the following lines:
set devmgr_show_nonpresent_devices=1
start devmgmt.msc
 
Command prompt
 
*This should automatically open the Device Manager for you.
 
  1.  In Device Manager: click View, then Show Hidden Devices.
Show Hidden Devices
 
  1. Expand the section labeled Ports (COM & LPT) to view all COM Ports that have ever been installed on this computer. COM Ports that have been assigned but are not currently connected will have a light-grey icon.


To remove an old COM Port

  1. Right-click on the COM Port in question and chose Uninstall.
Uninstall unused device
 
The removed COM Port is free to be assigned to new devices that are plugged into this PC.
 

To change COM Port assignments

  1. Right-click on the Serial Device you want to change and chose Properties.
Properties
 
  1. In the Properties window, click the Port Settings tab, then Advanced.
  2. In the window that opens, chose an unused COM Port from the dropdown list.
Reassign COM Port

Last updated: Aug 23, 2017

Filed Under

RFRF Dev kits

Recently Viewed

No recently viewed articles

Did you find this article helpful?