Python Forum

Full Version: Uninstall unused COM ports windows 10
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm very new to python and I haven't gotten very far with my code but below is what I have so far

import serial.tools.list_ports as port_list


ports = list(port_list.comports())
for p in ports:
    print (p)
this gives me the list of com ports that are active but I have com ports that are being installed but nothing is using it

Does anyone have any idea how I can return all com ports that are installed but not used.