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