What is the difference between the CimClass(es) CIM_USB_Device
and CIM_USBHub
? They both emit the same type and appear to produce the same set of objects?
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