Add Microsoft/check-RAM
Ausgabe welcher Ram Typ und Takt verbaut ist auf welchem Slot
This commit is contained in:
parent
02763211d6
commit
2c1d50346f
20
Microsoft/check-RAM
Normal file
20
Microsoft/check-RAM
Normal file
|
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue