mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-01 11:46:57 +02:00
Update check-ram.ps1
This commit is contained in:
parent
d5e97a1d85
commit
0d739f8a1a
@ -51,11 +51,7 @@ try {
|
|||||||
$Speed = $Bank.Speed
|
$Speed = $Bank.Speed
|
||||||
[float]$Voltage = $Bank.ConfiguredVoltage / 1000.0
|
[float]$Voltage = $Bank.ConfiguredVoltage / 1000.0
|
||||||
$Manufacturer = $Bank.Manufacturer
|
$Manufacturer = $Bank.Manufacturer
|
||||||
if ("$($Bank.BankLabel)" -ne "") {
|
$Location = "$($Bank.BankLabel)/$($Bank.DeviceLocator)"
|
||||||
$Location = $Bank.BankLabel
|
|
||||||
} else {
|
|
||||||
$Location = $Bank.DeviceLocator
|
|
||||||
}
|
|
||||||
"✅ $($Capacity)GB $Type ($($Speed)MHz, $($Voltage)V) at $Location by $Manufacturer."
|
"✅ $($Capacity)GB $Type ($($Speed)MHz, $($Voltage)V) at $Location by $Manufacturer."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -63,4 +59,4 @@ try {
|
|||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user