Change port command in Windows

  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

May be interested

  • How to connect printer 2.0 USB port to USB 3.0 port on Windows 10How to connect printer 2.0 USB port to USB 3.0 port on Windows 10
    the following article will guide you how to connect the usb 2.0 port of the printer to the usb 3.0 port on your computer. if you are having a similar problem, try it now!
  • Summary of some simple ways to disable USB ports on Windows computersSummary of some simple ways to disable USB ports on Windows computers
    you can imagine that usb ports are like door scenes, and other users or malware, viruses can spread and access your system anytime through this path. so to protect important data on your windows computer, you can disable the usb port.
  • The browser makers switch all Web Documentation to Mozilla's portThe browser makers switch all Web Documentation to Mozilla's port
    mozilla, google, microsoft, samsung and w3c all agreed to integrate their document pages into a single source, which is mozilla's mdn port.
  • How to convert WAN port to LAN on routerHow to convert WAN port to LAN on router
    you can configure the router's wan port to use it as a lan port. this is useful when you are using the router in repeater mode and do not require a wan port. as a result, you will have one more lan port.
  • What is port 0 used for?What is port 0 used for?
    unlike most port numbers, port 0 is a dedicated port in a tcp / ip network, meaning it is not used in tcp or udp messages. the network ports in tcp and udp range from 0 to 65535.
  • How to Change Directory in Command PromptHow to Change Directory in Command Prompt
    this article shows you how to change folders in the command prompt program on a windows computer. to change commands in command prompt, you must use an administrator account.
  • The command bootcfg dbg1394 in WindowsThe command bootcfg dbg1394 in Windows
    the bootcfg dbg1394 command specifies port 1394 debugging for the specified operating system entry, applicable to: windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012.
  • Instructions to change Port value on routerInstructions to change Port value on router
    we have conducted many tests on the process of accessing data files from inside and outside your network. and in the article below, we continue to mention the problem that many people have trouble getting started, that is forward port on the router.
  • How to set up Port Forwarding in WindowsHow to set up Port Forwarding in Windows
    occasionally, you will encounter an application or game that asks you to do something called 'port forwarding'.
  • How to check open ports in LinuxHow to check open ports in Linux
    when troubleshooting network problems or trying to improve security for linux computers, you need to know which ports are open. this article will show you some ways to test open ports in linux.