All detected COM port devices will be automatically detected by the system and assigned sequential COM port numbers. After the reboot, connect the devices in the necessary order, reinstall USB-to-serial converters, etc.
Get-WMIObject Win32_SerialPort | Where-Object |select name, deviceidįind Out Which Process is Using a Serial COM Port in Windows You can get the COM port number for a specific device by its name, for example: Get-WMIObject Win32_SerialPort | Select-Object Name,DeviceID,Description
You can get the full list of busy COM ports on Windows using PowerShell: However, this method does not allow you to free the busy COM port in all cases.
Select the free COM port in the dropdown list. Then go to the Port Settings tab and click Advanced. Once again open the properties of your device, go to the Port Settings -> Advanced tab. Now you can assign the freed COM port to another device.Expand the Ports (COM & LPT) branch, find which COM port number you need is assigned to (a pale icon means that this COM port is assigned, but this device is not currently connected).To change it, open the drop-down list and select the COM port number you want to set.īut more often you cannot change the assigned COM port number to another one in the hardware properties, since all the “lower” COM ports are already in use.In this case, you need to try to remove the COM port reservation.The current COM port number assigned to the device can be found in the COM Port Number field.Go to the Port Settings tab and click the Advanced button.Then expand Ports (COM & LPT) and find your device in the list.Select View->Show Hidden Devices in the menu.Open the Device Manager by running the devmgmt.msc command.Suppose the necessary COM port is already busy, and you want to try to free it. In Windows, you can manually change the COM port number assigned to a device.
How to Change a COM Port Number for a Device in Windows? Resetting COM Port Numbers in Windows Registry.Find Out Which Process is Using a Serial COM Port in Windows.How to Change a COM Port Number for a Device in Windows?.