View and/or Forget and Uninstall Unused COM Ports in Windows 7.

Windows by default generates a new COM port (including USB) number for every *new* device that connects to it. But occasionally, depending on software functionality or another reason, one may wish to “start over” at a lower number. This is done in the Device Manager through a simple selection of “Show Hidden Devices.” Well, you’d think, anyway. Likely you’ve already tried this and realized it does not work. Why these extra steps are required I don’t know, but they’re the very reason I’ve mostly switched to OS X and Linux. But here you go:

Click “START”, and in the “Search Programs and Files” box, type


You should see “Command Prompt.” show up above. *Right click” and click “Run as Administrator.”


At this command prompt, type

set devmgr_show_show_nonpresent_devices=1

Presse ENTER and then type the following followed by ENTER again:

start devmgmt.msc

Now, click “View” and then “Show hidden devices.”



Now, all devices that Windows has “saved” a COM port for but is not actually connected will now show. Simply right click and “Uninstall” to release that COM port number for a new instrument. Don’t worry: this will not delete drivers or anything; the instrument that was previously associated with that number will simply be assigned an unassigned number upon connection.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s