diff --git a/Scripts/check-ram.ps1 b/Scripts/check-ram.ps1 index 277b587b..cbba3445 100644 --- a/Scripts/check-ram.ps1 +++ b/Scripts/check-ram.ps1 @@ -51,11 +51,7 @@ try { $Speed = $Bank.Speed [float]$Voltage = $Bank.ConfiguredVoltage / 1000.0 $Manufacturer = $Bank.Manufacturer - if ("$($Bank.BankLabel)" -ne "") { - $Location = $Bank.BankLabel - } else { - $Location = $Bank.DeviceLocator - } + $Location = "$($Bank.BankLabel)/$($Bank.DeviceLocator)" "✅ $($Capacity)GB $Type ($($Speed)MHz, $($Voltage)V) at $Location by $Manufacturer." } } @@ -63,4 +59,4 @@ try { } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" exit 1 -} +} \ No newline at end of file