Hello, I'm writing software to interact with Diabetic Blood Sugar Meters. So far I've got 2 working and am trying a third. Most meters use a USB to Serial cable and I need to identify the COM port it is using. For the two I have working this was easy using the following script: ; Set return varialbe to -1 for error
$return = -1
; Flags for WMI
$wbemFlagReturnImmediately = 0x10 ;DO NOT CHANGE
$wbemFlagForwardOnly = 0x20 ;DO NOT CHANGE
; Try to connect to WMI
$wbemService = ObjG