JSI Tip 7270. How do I list, disable, and enable COM ports?

Jerold Schulman

October 1, 2003

1 Min Read
ITPro Today logo in a gray background | ITPro Today

When a COM port is incorrectly detected, it would be nice to have a tool to list the COM ports, and enable or disable them.

The COMDisable tool, from Microsoft, is available to address these needs.

COMDisable works on the following operating systems:

Windows Server 2003
Windows XP
Windows 2000 Service Pack 3 (SP3) or later

Syntax:

comdisable /listcomdisable /disable COMncomdisable /enable COMn

Examples:

When I type comdisable /list on a Windows XP workstation, I receive:

COM1 - (Standard port types) - Communications Port (COM1) - Currently enabledCOM2 - (Standard port types) - Communications Port (COM2) - Currently enabled

If I wanted to disable COM2, I would type:

comdisable /disable com2

I would receive:

Port COM2 disabled, you need to reboot before the changes takes effect.

After restarting, If I wanted to enable COM2, I would type:

comdisable /enable com2

I would receive:

Port COM2 enabled, you need to reboot before the changes takes effect.



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like