Update check-ram.ps1

This commit is contained in:
Markus Fleschutz 2022-10-26 10:34:07 +02:00
parent d5e97a1d85
commit 0d739f8a1a

View File

@ -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
}
}