Reference for Win32_SerialPort
(Diese Seite wurde noch nicht auf das neue Layout umgestellt!)

Select by Class Type Search by Keyword
Show all classes

Category (Kategorie):

Ports and Connectors

Description (Beschreibung):

The Win32_SerialPort WMI class represents a serial port on a Windows system.

Availability (Verfügbarkeit):

WMI Class NameWindows Server 2003Windows XP ProfessionalWindows 2000Windows NT 4.0Windows 98
Win32_SerialPortYesYesYesYesYes

Properties (Attribute):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
AvailabilityYesYesYesYesYes
BinaryYesYesYesYesYes
CapabilitiesYesYesYesYesYes
CapabilityDescriptionsYesYesYesYesYes
CaptionYesYesYesYesYes
ConfigManagerErrorCodeYesYesYesYesYes
ConfigManagerUserConfigYesYesYesYesYes
CreationClassNameYesYesYesYesYes
DescriptionYesYesYesYesYes
DeviceIDYesYesYesYesYes
ErrorClearedYesYesYesYesYes
ErrorDescriptionYesYesYesYesYes
InstallDateYesYesYesYesYes
LastErrorCodeYesYesYesYesYes
MaxBaudRateYesYesYesYesYes
MaximumInputBufferSizeYesYesYesYesYes
MaximumOutputBufferSizeYesYesYesYesYes
MaxNumberControlledYesYesYesYesYes
NameYesYesYesYesYes
OSAutoDiscoveredYesYesYesYesYes
PNPDeviceIDYesYesYesYesYes
PowerManagementCapabilitiesYesYesYesYesYes
PowerManagementSupportedYesYesYesYesYes
ProtocolSupportedYesYesYesYesYes
ProviderTypeYesYesYesYesYes
SettableBaudRateYesYesYesYesYes
SettableDataBitsYesYesYesYesYes
SettableFlowControlYesYesYesYesYes
SettableParityYesYesYesYesYes
SettableParityCheckYesYesYesYesYes
SettableRLSDYesYesYesYesYes
SettableStopBitsYesYesYesYesYes
StatusYesYesYesYesYes
StatusInfoYesYesYesYesYes
Supports16BitModeYesYesYesYesYes
SupportsDTRDSRYesYesYesYesYes
SupportsElapsedTimeoutsYesYesYesYesYes
SupportsIntTimeoutsYesYesYesYesYes
SupportsParityCheckYesYesYesYesYes
SupportsRLSDYesYesYesYesYes
SupportsRTSCTSYesYesYesYesYes
SupportsSpecialCharactersYesYesYesYesYes
SupportsXOnXOffYesYesYesYesYes
SupportsXOnXOffSetYesYesYesYesYes
SystemCreationClassNameYesYesYesYesYes
SystemNameYesYesYesYesYes
TimeOfLastResetYesYesYesYesYes

Methods (Methoden):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
ResetYesYesYesYesYes
SetPowerStateYesYesYesYesYes

Sample Code (Beispiel):

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_SerialPort")
For Each objItem in colItems
    Wscript.Echo "Caption: " & objItem.Caption
Next

Links:

Link zur Original-Microsoft-Dokumentation