Change port command in Windows

The change port command lists or changes COM port mapping for compatibility with MS-DOS applications.
  1. Applies to: Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012.

The change port command lists or changes COM port mapping for compatibility with MS-DOS applications. To learn examples of how to use this command, please see the Example below.

Note

In Windows Server 2008 R2, Terminal Services has been renamed to Remote Desktop Services.

Syntax command change port

 change port [= | / d | / query] 

Parameters

Parameter Description = Map COM to. / d Delete mapping for COM < PortX >. / query Displays the current port mapping. /? Show help at the command prompt.

Note

  1. Most MS-DOS applications only support COM1 via COM4 serial port. The change port command maps the serial port to a number of other ports, allowing applications that do not support the high-numbered COM port to access the serial port. The remapping only works for the current session and cannot be retained if you log out of the session and then log in again.
  2. Using the change port command without any parameters will show the available COM ports and their current mapping.

For example

To map COM12 to COM1 for use by an MS-DOS-based application, enter:

 change port com12 = com1 

To display the current port mapping, enter:

 change port / query 

See more:

  1. Change command in Windows
  2. Cd command in Windows
  3. Change logon command in Windows
3.9 ★ | 22 Vote