mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-30 09:36:40 +02:00
Update check-ram.ps1
This commit is contained in:
parent
d5e97a1d85
commit
0d739f8a1a
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user