https://superuser.com/questions/408976/how-do-i-clean-up-com-ports-in-use
方法1.使用Device Remover https://www.majorgeeks.com/files/details/device_remover_543c.html
Just load it up, click on "Display Mode", "Show only hidden/detached devices", Check "Ports" (which selects all the unused com ports), then click "Remove all checked", and confirm the removal when the warning appears.
方法2.
Run Device Manager from elevated command line:
> set DEVMGR_SHOW_NONPRESENT_DEVICES=1
> devmgmt.msc
Enable "Show hidden devices" in the menu, and uninstall grayed-out COM ports.