April 20th, 2013

PowerTip: Use PowerShell to Detect Mouse Type Used on Laptop

Doctor Scripto
Scripter

Summary: Use Windows PowerShell and WMI to detect the type of mouse that is being used on a laptop running Windows 8.

Hey, Scripting Guy! Question How can I find information about the type of mice that are being used in conjunction with my laptop that is running Windows 8?

Hey, Scripting Guy! Answer Depending on the mouse, you may be able to obtain the information by using the Get-CimInstance cmdlet and the Win32_PointingDevice WMI class. Select the HardwareType property.

Note  The following illustrates this technique on my laptop.

PS C:\> Get-CimInstance win32_POINTINGDEVICE | select hardwaretype

hardwaretype

————

ThinkPad UltraNav Pointing Device

Microsoft Wireless Laser Mouse 8000 (IntelliPoint)

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.