Created
January 3, 2015 12:05
-
-
Save chriseyre2000/a03ef55ed65e05be7582 to your computer and use it in GitHub Desktop.
get-winsat.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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