From 83d205e71769c55ea25084fdffd30c1f213c7d97 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Thu, 13 Oct 2022 19:42:55 +0200 Subject: [PATCH] Update check-ram.ps1 --- Scripts/check-ram.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Scripts/check-ram.ps1 b/Scripts/check-ram.ps1 index 22539013..09a354d0 100644 --- a/Scripts/check-ram.ps1 +++ b/Scripts/check-ram.ps1 @@ -48,8 +48,12 @@ try { $Speed = $Bank.Speed [float]$Voltage = $Bank.ConfiguredVoltage / 1000.0 $Vendor = $Bank.Manufacturer - $BankName = $Bank.DeviceLocator - "✅ $($Capacity)GB $Type ($($Speed)MHz, $($Voltage)V, $Vendor) in bank $BankName." + if ("$($Bank.BankLabel)" -ne "") { + $BankName = $Bank.BankLabel + } else { + $BankName = $Bank.DeviceLocator + } + "✅ $($Capacity)GB $Type ($($Speed)MHz, $($Voltage)V, $Vendor) in $BankName bank." } exit 0 # success } catch {