Returns information about all the pointing devices (including mice and trackballs) installed on a computer.
On Error Resume NextstrComputer = "."Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")Set colItems = objWMIService.ExecQuery("Select * from Win32_PointingDevice")For Each objItem in colItemsWscript.Echo "Description: " & objItem.DescriptionWscript.Echo "Device ID: " & objItem.DeviceIDWscript.Echo "Device Interface: " & objItem.DeviceInterfaceWscript.Echo "Double Speed Threshold: " & objItem.DoubleSpeedThresholdWscript.Echo "Handedness: " & objItem.HandednessWscript.Echo "Hardware Type: " & objItem.HardwareTypeWscript.Echo "INF File Name: " & objItem.InfFileNameWscript.Echo "INF Section: " & objItem.InfSectionWscript.Echo "Manufacturer: " & objItem.ManufacturerWscript.Echo "Name: " & objItem.NameWscript.Echo "Number Of Buttons: " & objItem.NumberOfButtonsWscript.Echo "PNP Device ID: " & objItem.PNPDeviceIDWscript.Echo "Pointing Type: " & objItem.PointingTypeWscript.Echo "Quad Speed Threshold: " & objItem.QuadSpeedThresholdWscript.Echo "Resolution: " & objItem.ResolutionWscript.Echo "Sample Rate: " & objItem.SampleRateWscript.Echo "Synch: " & objItem.SynchNext
This is a VB Script, this can be used by saving the file in .vbs file