mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-28 08:38:38 +01:00
Update check-cpu.ps1
This commit is contained in:
parent
49d0a726d3
commit
309af499f6
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user