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