Reference for Win32_USBHub
|
|
Category (Kategorie): Ports and Connectors
Description (Beschreibung): The Win32_USBHub WMI class represents the management characteristics of a USB hub.
Availability (Verfügbarkeit): WMI Class Name | Windows Server 2003 | Windows XP Professional | Windows 2000 | Windows NT 4.0 | Windows 98 | Win32_USBHub | Yes | Yes | - | - | - |
Properties (Attribute): Item | Server 2003 | XP Pro | Windows 2000 | NT 4.0 | Windows 98 | Availability | Yes | Yes | - | - | - | Caption | Yes | Yes | - | - | - | ClassCode | Yes | Yes | - | - | - | ConfigManagerErrorCode | Yes | Yes | - | - | - | ConfigManagerUserConfig | Yes | Yes | - | - | - | CreationClassName | Yes | Yes | - | - | - | CurrentAlternateSettings | Yes | Yes | - | - | - | CurrentConfigValue | Yes | Yes | - | - | - | Description | Yes | Yes | - | - | - | DeviceID | Yes | Yes | - | - | - | ErrorCleared | Yes | Yes | - | - | - | ErrorDescription | Yes | Yes | - | - | - | GangSwitched | Yes | Yes | - | - | - | InstallDate | Yes | Yes | - | - | - | LastErrorCode | Yes | Yes | - | - | - | Name | Yes | Yes | - | - | - | NumberOfConfigs | Yes | Yes | - | - | - | NumberOfPorts | Yes | Yes | - | - | - | PNPDeviceID | Yes | Yes | - | - | - | PowerManagementCapabilities | Yes | Yes | - | - | - | PowerManagementSupported | Yes | Yes | - | - | - | ProtocolCode | Yes | Yes | - | - | - | Status | Yes | Yes | - | - | - | StatusInfo | Yes | Yes | - | - | - | SubclassCode | Yes | Yes | - | - | - | SystemCreationClassName | Yes | Yes | - | - | - | SystemName | Yes | Yes | - | - | - | USBVersion | Yes | Yes | - | - | - |
Methods (Methoden): Item | Server 2003 | XP Pro | Windows 2000 | NT 4.0 | Windows 98 | GetDescriptor | Yes | Yes | - | - | - | Reset | Yes | Yes | - | - | - | SetPowerState | Yes | Yes | - | - | - |
Sample Code (Beispiel):
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_USBHub")
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Next
Links:
Link zur Original-Microsoft-Dokumentation
www.IT-Visions.de, (C) Dr. Holger Schwichtenberg
|