mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-11 16:39:10 +01:00
Update check-ram.ps1
This commit is contained in:
parent
2f942d173e
commit
83d205e717
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user