mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-18 16:08:19 +02:00
Update check-ram.ps1
This commit is contained in:
parent
e29b6db89a
commit
4e93ed99bd
@ -50,13 +50,13 @@ try {
|
|||||||
$Type = GetRAMType $Bank.SMBIOSMemoryType
|
$Type = GetRAMType $Bank.SMBIOSMemoryType
|
||||||
$Speed = $Bank.Speed
|
$Speed = $Bank.Speed
|
||||||
[float]$Voltage = $Bank.ConfiguredVoltage / 1000.0
|
[float]$Voltage = $Bank.ConfiguredVoltage / 1000.0
|
||||||
$Vendor = $Bank.Manufacturer
|
$Manufacturer = $Bank.Manufacturer
|
||||||
if ("$($Bank.BankLabel)" -ne "") {
|
if ("$($Bank.BankLabel)" -ne "") {
|
||||||
$Location = $Bank.BankLabel
|
$Location = $Bank.BankLabel
|
||||||
} else {
|
} else {
|
||||||
$Location = $Bank.DeviceLocator
|
$Location = $Bank.DeviceLocator
|
||||||
}
|
}
|
||||||
"✅ $($Capacity)GB $Type ($($Speed)MHz, $($Voltage)V) by $Vendor at $Location."
|
"✅ $($Capacity)GB $Type ($($Speed)MHz, $($Voltage)V) at $Location by $Manufacturer."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
Loading…
Reference in New Issue
Block a user