PowerShell

PowerShell: Getting RAM Info by manufacturer, speed, serial number, capacity, DUAL-Channel …

If the memory is to be upgraded, then you have to find out whether the new memory is compatible. Therefore you have to find out the type of your currently installed memory. The device manager does not provide any information about this.

Basics

The current RAM configuration can be accessed via the Windows key + Pause.

Unbenannt.PNG

But there is no information about the manufacturer, the speed and the serial number.

Get-WmiObject

To get this information run Get-WmiObject.

Get-WmiObject win32_physicalmemory | Format-Table Manufacturer,Banklabel,Configuredclockspeed,Devicelocator,Capacity,Serialnumber -autosize

Unbenannt.PNG

Get-CimInstance

You can also run Get-CimInstance.

Get-CimInstance win32_physicalmemory | Format-Table Manufacturer,Banklabel,Configuredclockspeed,Devicelocator,Capacity,Serialnumber -autosize

1.PNG

The Motherboard

To find out whether your motherboard is compatible with the new memory run

Get-WmiObject Win32_BaseBoard

2.PNG

8 replies »

  1. Get-CimInstance win32_physicalmemory | Select-Object Manufacturer,Banklabel,Configuredclockspeed,Devicelocator,@{Name = ‘Capacity’;Expression = {“$($_.Capacity / 1gb)” + ‘GB’}},Serialnumber |Format-Table -AutoSize

    just a litle tweak from me 😉

    Have fun guys!
    Patrik, great article, thank you!

    Liked by 1 person

    • how would u put that in?

      Get-CimInstance win32_physicalmemory | Format-Table Manufacturer,Banklabel,Configuredclockspeed,Devicelocator,Capacity,Serialnumber -autosize

      $mem=Get-CimInstance win32_physicalmemory |Select-Object -ExpandProperty Capacity
      $mem/1gb

      i get a select-object error cannot convert ‘system.object[]’ to the type ‘system.string’ required by the parameter ‘expandedproperty’

      Like

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.