Skip to content

Instantly share code, notes, and snippets.

@chriseyre2000
Created January 3, 2015 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriseyre2000/a03ef55ed65e05be7582 to your computer and use it in GitHub Desktop.
Save chriseyre2000/a03ef55ed65e05be7582 to your computer and use it in GitHub Desktop.
get-winsat.ps1
# Need to Run As Admin
# Set locations
$WinSATFile = "MyWinSATScore.xml"
$WinSATFolder = "$ENV:windir\performance\winsat\datastore"
# Change to Location
push-location $WinSATFolder
# If WinSATFile exists Delete it.
If (Test-Path $WinSATFile)
{Remove-Item $WinSATFile}
# Run Winsat (CMD command)
Winsat formal -xml MyWinSATScore.XML
# View Scores
[xml]$WinSat=Get-Content $WinSATFile
Pop-Location
$WinSat.WinSAT.WinSPR
Get-WmiObject -query "select * from win32_processor"
Get-WmiObject -query "select * from Win32_ComputerSystem"
Get-WmiObject -query "select * from Win32_OperatingSystem"
Get-WmiObject -query "select * from Win32_PhysicalMemory"
Get-WmiObject -query "select * from Win32_PhysicalMedia"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment