Update check-cpu.ps1

This commit is contained in:
Markus Fleschutz 2022-12-28 12:48:30 +01:00
parent 49d0a726d3
commit 309af499f6

View File

@ -60,10 +60,11 @@ try {
} else {
$Details = Get-WmiObject -Class Win32_Processor
$CPUName = $Details.Name.trim()
$Cores = [System.Environment]::ProcessorCount
$DeviceID = $Details.DeviceID
$Speed = "$($Details.MaxClockSpeed)MHz"
$Socket = $Details.SocketDesignation
"$Status $CPUName ($DeviceID, $Speed, socket $Socket, $Temp)"
"$Status $CPUName ($Cores cores, $DeviceID, $Speed, $Socket socket, $Temp)"
}
exit 0 # success
} catch {