Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Computer HardwareContent of List Computer Hardware.vbsMD5 Hash: 760D391799DF8ABD0EC03808215A076F |
||
' Description: Returns information about the pointing devices installed on a computer. Used as an example of how to retrieve hardware information using WMI.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colMice = objWMIService.ExecQuery _ ("Select * from Win32_PointingDevice") For Each objMouse in colMice Wscript.Echo "Hardware Type: " & objMouse.HardwareType Wscript.Echo "Number of Buttons: " & objMouse.NumberOfButtons Wscript.Echo "Status: " & objMouse.Status Wscript.Echo "PNP Device ID: " & objMouse.PNPDeviceID Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |