Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List USB Hub InformationContent of List USB Hub Information.vbsMD5 Hash: A632FD703CC9907B83D7B8EC9290727D |
||
' Description: Returns information about all the USB hubs found on a computer.
On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_USBHub") For Each objItem in colItems Wscript.Echo "Configuration Manager Error Code: " & _ objItem.ConfigManagerErrorCode Wscript.Echo "Configuration Manager User Configuration: " & _ objItem.ConfigManagerUserConfig Wscript.Echo "Description: " & objItem.Description Wscript.Echo "Device ID: " & objItem.DeviceID Wscript.Echo "PNP Device ID: " & objItem.PNPDeviceID Wscript.Echo Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |