#Get-WinSATScore gets the Windows Experience Index settings for #Windows 8.x. It alsow works with Windows 7 where PS 3 is installed. #alan at akaplan dot com #12/28/2013 #www.akaplan.com/blog #Requires -version 3 function Get-WINSATscore{ param( [Parameter(Mandatory=$False)] [switch] $ReRun ) if ($ReRun){ Try{ Start-Process WinSAT -argumentlist Formal -NoNewWindow -Wait $file = Get-Item -Path $env:Windir\performance\WinSat\Datastore\*formal* | sort LastWriteTime | select -last 1 } Catch {$error[0].Exception.Message break } }else{ $file = Get-Item -Path $env:Windir\performance\WinSat\Datastore\*formal* | Sort-Object -Property CreationTime -Descending | Out-GridView -PassThru -Title 'Select Test to View, then press [Ok]' } $xml = [xml](Get-Content $file) "WINSAT Scores from test run on " + $($file).creationtime Write-Host "(Use the -ReRun switch to update)" return $xml.winsat.WinSPR }