From 3f5188ceb95233ad1da6a2b99f058545f8e0c5e7 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 19 Dec 2022 19:51:29 +0100 Subject: [PATCH] Update check-bios.ps1 and check-ram.ps1 --- Scripts/check-bios.ps1 | 4 ++-- Scripts/check-ram.ps1 | 19 ++++++++++--------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Scripts/check-bios.ps1 b/Scripts/check-bios.ps1 index 31e70fd7..25e357b8 100644 --- a/Scripts/check-bios.ps1 +++ b/Scripts/check-bios.ps1 @@ -5,7 +5,7 @@ This PowerShell script queries BIOS details and prints it. .EXAMPLE PS> ./check-bios - ✅ V1.10 BIOS (by INSYDE Corp., S/N NXA82EV0EBB07600, version ACRSYS - 2) + ✅ V1.10 BIOS (S/N NXA82EV0EBB0760, version ACRSYS - 2) by INSYDE Corp. .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -22,7 +22,7 @@ try { $Model = $BIOS.Name.Trim() $Serial = $BIOS.SerialNumber.Trim() $Version = $BIOS.Version.Trim() - "✅ $Model BIOS (by $Manufacturer, S/N $Serial, version $Version)" + "✅ $Model BIOS (S/N $Serial, version $Version) by $Manufacturer" } exit 0 # success } catch { diff --git a/Scripts/check-ram.ps1 b/Scripts/check-ram.ps1 index 6389e11c..f3a6fdcb 100644 --- a/Scripts/check-ram.ps1 +++ b/Scripts/check-ram.ps1 @@ -5,6 +5,7 @@ This PowerShell script queries and prints details of the installed RAM. .EXAMPLE PS> ./check-ram + ✅ 8GB DDR4 RAM (3200MHz, 1.2V) at P0 CHANNEL A/DIMM 0 by Samsung .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -14,7 +15,7 @@ function GetRAMType { param([int]$Type) switch($Type) { 2 { return "DRAM" } - 5 { return "EDO" } + 5 { return "EDO RAM" } 6 { return "EDRAM" } 7 { return "VRAM" } 8 { return "SRAM" } @@ -28,14 +29,14 @@ function GetRAMType { param([int]$Type) 17 { return "SDRAM" } 18 { return "SGRAM" } 19 { return "RDRAM" } - 20 { return "DDR" } - 21 { return "DDR2" } + 20 { return "DDR RAM" } + 21 { return "DDR2 RAM" } 22 { return "DDR2 FB-DIMM" } - 24 { return "DDR3" } - 26 { return "DDR4" } - 27 { return "DDR5" } - 28 { return "DDR6" } - 29 { return "DDR7" } + 24 { return "DDR3 RAM" } + 26 { return "DDR4 RAM" } + 27 { return "DDR5 RAM" } + 28 { return "DDR6 RAM" } + 29 { return "DDR7 RAM" } default { return "RAM" } } } @@ -68,7 +69,7 @@ try { [float]$Voltage = $Bank.ConfiguredVoltage / 1000.0 $Manufacturer = $Bank.Manufacturer $Location = "$($Bank.BankLabel)/$($Bank.DeviceLocator)" - "✅ $Capacity RAM at $Location ($Type, $($Speed)MHz, $($Voltage)V, $Manufacturer)" + "✅ $Capacity $Type ($($Speed)MHz, $($Voltage)V) at $Location by $Manufacturer" } } exit 0 # success