From 0654d7730b589ae45debc168266091d68503fa57 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Thu, 1 Dec 2022 22:05:40 +0100 Subject: [PATCH] Update check-cpu.ps1, check-gpu.ps1, and check-ram.ps1 --- Scripts/check-cpu.ps1 | 4 ++-- Scripts/check-gpu.ps1 | 2 +- Scripts/check-ram.ps1 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/check-cpu.ps1 b/Scripts/check-cpu.ps1 index 9e9c631a..cfc0f464 100755 --- a/Scripts/check-cpu.ps1 +++ b/Scripts/check-cpu.ps1 @@ -46,10 +46,10 @@ try { } else { $Details = Get-WmiObject -Class Win32_Processor $DeviceName = $Details.Name.trim() - "✅ $($DeviceName): $($Details.DeviceID), $($Details.MaxClockSpeed)MHz, $Temp" + "✅ CPU $($DeviceName) ($($Details.DeviceID), $($Details.MaxClockSpeed)MHz, $Temp)" } exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" exit 1 -} +} \ No newline at end of file diff --git a/Scripts/check-gpu.ps1 b/Scripts/check-gpu.ps1 index 5a294658..c0b70978 100644 --- a/Scripts/check-gpu.ps1 +++ b/Scripts/check-gpu.ps1 @@ -36,7 +36,7 @@ try { $RefreshRate = $Details.CurrentRefreshRate $DriverVersion = $Details.DriverVersion $Status = $Details.Status - "✅ GPU $($Model): $(Bytes2String $RAMSize) RAM, $($ResWidth)x$($ResHeight) pixels, $BitsPerPixel bit, $RefreshRate Hz, driver $DriverVersion, status $Status" + "✅ GPU $($Model) ($(Bytes2String $RAMSize) RAM, $($ResWidth)x$($ResHeight) pixels, $BitsPerPixel bit, $RefreshRate Hz, driver $DriverVersion, status $Status)" } } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Scripts/check-ram.ps1 b/Scripts/check-ram.ps1 index 69864b19..cd00985f 100644 --- a/Scripts/check-ram.ps1 +++ b/Scripts/check-ram.ps1 @@ -52,7 +52,7 @@ try { [float]$Voltage = $Bank.ConfiguredVoltage / 1000.0 $Manufacturer = $Bank.Manufacturer $Location = "$($Bank.BankLabel)/$($Bank.DeviceLocator)" - "✅ $($Capacity)GB $($Type) at $($Location): $($Speed)MHz, $($Voltage)V by $Manufacturer" + "✅ $($Capacity)GB $($Type) at $($Location) ($($Speed)MHz, $($Voltage)V by $Manufacturer)" } } exit 0 # success