

If some specific device occupies several ports simultaneously, you need to remove them altogether

The next step is to display all COM ports in use.You need this to delete COM ports in use. Now you need to force the Device Manager to show disconnected and unavailable devices.Now, launch the Device Manager using Win + R and devmgmt.msc command.Set Variable name to devmgr_show_nonpresent_devices and the Variable value to 1.In the User variables section, click the New button.

In a new window, press the Environment Variables button.Open your system’s properties and press the Advanced system settings link.You can manually delete the used COM port and reassign it for a new device. If Windows says the port you need is in use, these instructions won’t work. This will work only if the COM port you need to use is free. Select a new COM port number from the COM Port Number drop-down list at the bottom of a new window.In a new window, go to the Port Settings tab and press the Advanced button.Find the device you need to reassign COM port and right-click it.Locate the Ports section and expand it.This is a universal command that works in any recent Windows version On your keyboard, press Win + R and enter the devmgmt.msc command.
