Access "Windows Experience Index" with PowerShell

To easily access the Windows performance Index (Windows Experience Index) you can query the following WMI class in PowerShell 1.0 & 2.0

gwmi Win32_WinSat

- or -

Get-WMIObject Win32_WinSat

Because it is a WMI call you can easly specify '-ComputerName' parameter to access the same information on a remote Windows system

 gwmi Win32_WinSat -computername 'Server01'


If you are using PowerShell 3.0 use:

Get-CimInstance Win32_WinSAT