Dim searcher As New ManagementObjectSearcher("root\CIMV2", "SELECT * FROM Win32_SerialPort") For Each queryObj As ManagementObject In searcher.Get() Debug.Print(queryObj("Availability")) Debug.Print(queryObj("Binary")) Debug.Print(queryObj("Capabilities")) Debug.Print(queryObj("CapabilityDescriptions")) Debug.Print(queryObj("Caption")) Debug.Print(queryObj("ConfigManagerErrorCode")) Debug.Print(queryObj("ConfigManagerUserConfig")) Debug.Print(queryObj("CreationClassName")) Debug.Print(queryObj("Description")) Debug.Print(queryObj("DeviceID")) Debug.Print(queryObj("ErrorCleared")) Debug.Print(queryObj("ErrorDescription")) Debug.Print(queryObj("InstallDate")) Debug.Print(queryObj("LastErrorCode")) Debug.Print(queryObj("MaxBaudRate")) Debug.Print(queryObj("MaximumInputBufferSize")) Debug.Print(queryObj("MaximumOutputBufferSize")) Debug.Print(queryObj("MaxNumberControlled")) Debug.Print(queryObj("Name")) Debug.Print(queryObj("OSAutoDiscovered")) Debug.Print(queryObj("PNPDeviceID")) Debug.Print(queryObj("PowerManagementSupported")) Debug.Print(queryObj("ProtocolSupported")) Debug.Print(queryObj("ProviderType")) Debug.Print(queryObj("SettableBaudRate")) Debug.Print(queryObj("SettableDataBits")) Debug.Print(queryObj("SettableFlowControl")) Debug.Print(queryObj("SettableParity")) Debug.Print(queryObj("SettableParityCheck")) Debug.Print(queryObj("SettableRLSD")) Debug.Print(queryObj("SettableStopBits")) Debug.Print(queryObj("Status")) Debug.Print(queryObj("StatusInfo")) Debug.Print(queryObj("Supports16BitMode")) Debug.Print(queryObj("SupportsDTRDSR")) Debug.Print(queryObj("SupportsElapsedTimeouts")) Debug.Print(queryObj("SupportsIntTimeouts")) Debug.Print(queryObj("SupportsParityCheck")) Debug.Print(queryObj("SupportsRLSD")) Debug.Print(queryObj("SupportsRTSCTS")) Debug.Print(queryObj("SupportsSpecialCharacters")) Debug.Print(queryObj("SupportsXOnXOff")) Debug.Print(queryObj("SupportsXOnXOffSet")) Debug.Print(queryObj("SystemCreationClassName")) Debug.Print(queryObj("SystemName")) Debug.Print(queryObj("TimeOfLastReset")) Next