mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-24 02:48:17 +02:00
Update check-ram.ps1
This commit is contained in:
parent
2f942d173e
commit
83d205e717
@ -48,8 +48,12 @@ try {
|
|||||||
$Speed = $Bank.Speed
|
$Speed = $Bank.Speed
|
||||||
[float]$Voltage = $Bank.ConfiguredVoltage / 1000.0
|
[float]$Voltage = $Bank.ConfiguredVoltage / 1000.0
|
||||||
$Vendor = $Bank.Manufacturer
|
$Vendor = $Bank.Manufacturer
|
||||||
$BankName = $Bank.DeviceLocator
|
if ("$($Bank.BankLabel)" -ne "") {
|
||||||
"✅ $($Capacity)GB $Type ($($Speed)MHz, $($Voltage)V, $Vendor) in bank $BankName."
|
$BankName = $Bank.BankLabel
|
||||||
|
} else {
|
||||||
|
$BankName = $Bank.DeviceLocator
|
||||||
|
}
|
||||||
|
"✅ $($Capacity)GB $Type ($($Speed)MHz, $($Voltage)V, $Vendor) in $BankName bank."
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user