From 2c1d50346ffc65d4af181fb0a88f219396d25799 Mon Sep 17 00:00:00 2001 From: Timur Date: Fri, 15 May 2026 10:54:35 +0000 Subject: [PATCH] Add Microsoft/check-RAM Ausgabe welcher Ram Typ und Takt verbaut ist auf welchem Slot --- Microsoft/check-RAM | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Microsoft/check-RAM diff --git a/Microsoft/check-RAM b/Microsoft/check-RAM new file mode 100644 index 0000000..d39e9c1 --- /dev/null +++ b/Microsoft/check-RAM @@ -0,0 +1,20 @@ +Get-CimInstance Win32_PhysicalMemory | ForEach-Object { + + $ramType = switch ($_.SMBIOSMemoryType) { + 20 {"DDR"} + 21 {"DDR2"} + 24 {"DDR3"} + 26 {"DDR4"} + 34 {"DDR5"} + default {"Unbekannt"} + } + + [PSCustomObject]@{ + Hersteller = $_.Manufacturer + Modell = $_.PartNumber.Trim() + GroesseGB = [Math]::Round($_.Capacity / 1GB, 0) + TaktMHz = $_.ConfiguredClockSpeed + RAMTyp = $ramType + Slot = $_.DeviceLocator + } +} \ No newline at end of file