i have to modify a program that is disturbed by BT ports and would like to filter avaible ports to list only rs232 or rs232 via usb to user.
I saw that jssc doesnt allow the getproperty method so i'm trying to do that using powershell cmd. this filter has to work on win10 and win7.
As first step i started tests using that but i don't how to filter results to see only pnpclass="ports"
``gwmi Win32_USBControllerDevice |%{wmi} |select name, pnpclass `
Thank you