Reference for Win32_USBHub
(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_USBHub WMI class represents the management characteristics of a USB hub.

Availability (Verfügbarkeit):

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

Properties (Attribute):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
AvailabilityYesYes---
CaptionYesYes---
ClassCodeYesYes---
ConfigManagerErrorCodeYesYes---
ConfigManagerUserConfigYesYes---
CreationClassNameYesYes---
CurrentAlternateSettingsYesYes---
CurrentConfigValueYesYes---
DescriptionYesYes---
DeviceIDYesYes---
ErrorClearedYesYes---
ErrorDescriptionYesYes---
GangSwitchedYesYes---
InstallDateYesYes---
LastErrorCodeYesYes---
NameYesYes---
NumberOfConfigsYesYes---
NumberOfPortsYesYes---
PNPDeviceIDYesYes---
PowerManagementCapabilitiesYesYes---
PowerManagementSupportedYesYes---
ProtocolCodeYesYes---
StatusYesYes---
StatusInfoYesYes---
SubclassCodeYesYes---
SystemCreationClassNameYesYes---
SystemNameYesYes---
USBVersionYesYes---

Methods (Methoden):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
GetDescriptorYesYes---
ResetYesYes---
SetPowerStateYesYes---

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