Get CPU informations on a remote computer with PowerShell

Hello,

To get CPU informations, you need to use the “Win32_processor” WMI class like that :

Gwmi-CPU

If you want more informations, you can use :

Get-WmiObject -Class Win32_processor -ComputerName SQL | select *

This will force the WMI query to retrieve a lot more informations about the remote machine’s CPU.

You also select a few useful properties, with multiple computers :

 Get-WmiObject -Class Win32_processor -ComputerName SQL,WSUS,SOFSR2Node1,SOFSR2Node2 | select SystemName,Name,CurrentClockSpeed | Format-Table -AutoSize

Gwmi-CPU-Selected

Leave a Reply