PowerShell/Microsoft/check-RAM
Timur 2c1d50346f Add Microsoft/check-RAM
Ausgabe welcher Ram Typ und Takt verbaut ist auf welchem Slot
2026-05-15 10:54:35 +00:00

20 lines
523 B
Plaintext

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
}
}