How to Check COM Ports in Windows 11

A program wants to know “which COM port?” and you have a board, an adapter or two, and a list of near-identical entries. On current versions of Windows 11, the numbers live in Device Manager under Ports (COM & LPT), written in brackets after each device name, for example USB Serial Device (COM3). To tell which one belongs to your hardware, unplug it, watch which entry vanishes, then plug it back in and note the number that returns.

Pick the quickest route for your situation

Your situation Best route What you get
One serial device plugged in Device Manager > Ports (COM & LPT) The device name and its COM number
Several adapters that look alike The unplug test in Device Manager Proof of which entry is which
You want a list you can copy or script PowerShell Every port with its device name in one go
A Bluetooth device that uses a serial profile Device Manager, then the Bluetooth COM port settings The virtual port Windows created for it
A board for the Arduino IDE or a similar tool Device Manager first, then the tool’s port menu (Tools > Port in the Arduino IDE) The same COM number, selected inside the app

If you were actually after network ports (the kind a game server or web app listens on), that is a different job: see checking whether a network port is open on Windows.

Spot your device with the unplug test

  1. Right-click the Start button and choose Device Manager. If that menu is not an option on your PC, the other ways to get to Device Manager in Windows 11 all lead to the same window.
  2. Click the arrow next to Ports (COM & LPT) to expand it.
  3. Read the list. Each entry ends with its port in brackets, such as (COM3) or (COM7).
  4. Unplug the device you care about. Within a few seconds its entry disappears from the list.
  5. Plug it back in. The entry that reappears is yours, and the number in brackets is the one to type into your program.
Device Manager with Ports (COM and LPT) expanded showing a USB serial device on COM3
Ports (COM & LPT) lists each serial device and its number.

Plug the device into the same USB socket each time while you test. Some adapters get a different number on a different socket, which is covered further down.

A standard account should be able to view this list; changing a port number or removing a device asks for administrator approval.

See every port and its device name in PowerShell

When several adapters are connected, a single command is quicker than expanding menus. Right-click Start, choose Terminal, and make sure the tab says PowerShell. Then run one of these.

Present devices with friendly names

Get-CimInstance Win32_PnPEntity | Where-Object { $_.Name -match '\(COM\d+\)' } | Select-Object Name

This asks Windows for every Plug and Play device, keeps the ones whose name contains a COM number in brackets, and prints names such as Arduino Uno (COM5) or Prolific USB-to-Serial Comm Port (COM4).

Only the Ports category, including status

Get-PnpDevice -Class Ports -PresentOnly | Select-Object FriendlyName, Status

Microsoft’s reference for Get-PnpDevice explains that -PresentOnly limits the results to devices connected right now. Without it, the list can also include devices that are not plugged in now, which is handy when you are hunting for old entries holding a number. Microsoft lists OK, Error, Degraded and Unknown as status values; anything other than OK is worth a closer look in Device Manager.

What mode and GetPortNames really show

Many older pages suggest two other commands. Both still work, but each has a catch.

  • [System.IO.Ports.SerialPort]::GetPortNames() in PowerShell returns bare names like COM3 and COM5, with no device names. Microsoft’s GetPortNames documentation says the list comes from the registry key HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM, that the order is not guaranteed, and that stale registry data can produce wrong results. So a port can appear here even when nothing is plugged in.
  • mode in Command Prompt or PowerShell, with no parameters, displays the status of all installed devices that it handles, according to Microsoft’s mode command reference. COM ports appear as blocks titled with their number, alongside the console. There are no friendly names, so it cannot tell you which board is which.

Skip any instructions that start with wmic. Microsoft’s list of deprecated Windows features now says WMIC is removed and no longer available as an optional feature on Windows 11, version 24H2 and later, so those commands fail on current releases. The Get-CimInstance command above reads the same information through PowerShell.

Bluetooth serial ports

Some Bluetooth devices, often older GPS units, data loggers and serial modules, use a serial profile. Windows creates a virtual COM port for them, which shows in Ports (COM & LPT) with a Bluetooth name. If you need to add or check those ports directly, look in Settings > Bluetooth & devices > Devices > More Bluetooth settings, where a COM Ports tab lists them. Microsoft does not document that dialog for current versions of Windows 11, so the labels may differ slightly. If Bluetooth itself is off, turning on Bluetooth in Windows comes first.

Ports that are not listed or show a warning

  • No Ports (COM & LPT) category at all. Windows may hide this category when no serial device is connected. Click View > Show hidden devices to include devices that were connected before.
  • The device sits under Other devices with a yellow mark. Windows has no driver for its USB-to-serial chip. Adapters are commonly built on FTDI, Prolific or CH340 chips, and each maker publishes a driver. Installing a driver on Windows 11 covers the process.
  • The entry has a warning icon under Ports. The driver loaded but is failing. Try another cable or socket, then update the driver in Windows 11 from Device Manager or the maker’s site.
  • Nothing changes when you plug in. Some USB cables carry power only, with no data wires. Swap the cable before blaming Windows.

Why the number moves, and how to pin it

Windows gives a serial device a number the first time it sees it and normally reuses it. Whether it counts as the same device depends on the driver. FTDI’s application note on its drivers says adapters with the same identifiers but different serial numbers are treated as different devices, and that its driver starts assigning numbers at COM3 and takes the next free number if that one is taken. Adapters without a unique serial number may be treated as new when they move to a different USB socket, so they pick up a new number.

To set a fixed number:

  1. In Device Manager, right-click your device under Ports (COM & LPT) and choose Properties.
  2. Open the Port Settings tab and click Advanced.
  3. Pick a number from the COM Port Number list and click OK twice.
  4. Unplug and replug the device, then confirm the new number in the list.

If the number you want is marked as in use, an old device you no longer own may still be holding it. Turn on View > Show hidden devices, look for faded entries under Ports, and uninstall only the ones for hardware you no longer use. Leave anything you are unsure about alone. Older programs that only accept low numbers are the usual reason to bother with this.

Make sure the port actually responds

  • Quick open test. In Command Prompt, run mode COM3 (with your number). If the port can be opened, mode prints its baud rate and other settings. An error usually means the port is missing or another program has it open.
  • Port in use. A COM port normally accepts one program at a time. Close serial monitors, terminal programs and IDEs, then try again.
  • Loopback test. On an adapter with a standard 9-pin plug, a jumper between the transmit and receive pins (2 and 3) sends whatever you type straight back. Open the port in a terminal program such as PuTTY, choose the Serial connection type, type a few characters, and they should echo.
  • Speed settings. The Port Settings tab in Properties shows default bits per second, data bits, parity and stop bits. Most programs set their own, so a mismatch here rarely matters.

Serial port questions

What is the difference between COM and LPT?

COM ports are serial ports that send data one bit at a time, used by boards, adapters and lab gear. LPT ports are the old parallel printer ports. Both share one category in Device Manager, but almost every modern device you plug in will be a COM port.

Why does PowerShell list a port that Device Manager does not show?

GetPortNames reads a registry list, and that list can hold entries for devices no longer connected. Turn on Show hidden devices in Device Manager, or use the Get-PnpDevice command with -PresentOnly to see only what is plugged in now.

Do I need administrator rights?

Usually not to look. Device Manager can normally be opened from a standard account to read port numbers, but changing a number, uninstalling a device or installing a driver needs an administrator.

Does the COM number stay the same after a restart?

Usually, as long as the device stays in the same socket. A driver update or reinstall may assign a different number, so recheck Device Manager if a program that worked before can no longer connect.

Once you have the number, enter it in your program exactly as shown, such as COM3, and keep the device in that same socket.