CimClass(s)CIM_USB_Device
和CIM_USBHub
之间的区别是什么?他们都发出相同的类型,似乎产生相同的一组对象?CIM_USBDevice,CIM_USBHub和Win32_USBHub有什么不同?
PS C:\src\t> Get-CimInstance CIM_USBDevice | % { $_.Name }
USB Root Hub (USB 3.0)
Generic USB Hub
USB Composite Device
Genesys Logic USB2.0 Card Reader
USB Composite Device
USB Root Hub
Generic USB Hub
USB Root Hub
PS C:\src\t> Get-CimInstance CIM_USBHub | % { $_.Name }
USB Root Hub (USB 3.0)
Generic USB Hub
USB Composite Device
Genesys Logic USB2.0 Card Reader
USB Composite Device
USB Root Hub
Generic USB Hub
USB Root Hub
PS C:\src\t> Get-CimInstance Win32_USBHub | % { $_.Name }
USB Root Hub (USB 3.0)
Generic USB Hub
USB Composite Device
Genesys Logic USB2.0 Card Reader
USB Composite Device
USB Root Hub
Generic USB Hub
USB Root Hub
PS C:\src\t> Get-CimInstance CIM_USBDevice | gm
TypeName: Microsoft.Management.Infrastructure.CimInstance#root/cimv2/Win32_USBHub
PS C:\src\t> Get-CimInstance CIM_USBHub | gm
TypeName: Microsoft.Management.Infrastructure.CimInstance#root/cimv2/Win32_USBHub
PS C:\src\t> Get-CimInstance Win32_USBHub | gm
TypeName: Microsoft.Management.Infrastructure.CimInstance#root/cimv2/Win32_USBHub
'(Get-CimClass Win32_USBHub).CimSuperClass; (Get-CimClass Win32_USBHub).CimSuperClass.CimSuperClass' – PetSerAl
@PetSerAl - 我不太清楚这有助于回答这个问题。 – lit