From 309af499f6eda04bafde3ce9c2291e6d96dee138 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 28 Dec 2022 12:48:30 +0100 Subject: [PATCH] Update check-cpu.ps1 --- Scripts/check-cpu.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Scripts/check-cpu.ps1 b/Scripts/check-cpu.ps1 index 47a16f57..b117878b 100755 --- a/Scripts/check-cpu.ps1 +++ b/Scripts/check-cpu.ps1 @@ -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 {