PowerShell for Windows Admins

Aug 11 2010   1:05PM GMT

Memory configuration

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Tags:

We have seen how to discover the total physical memory in a system but how is that memory arranged.

001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
041
$form = DATA {
ConvertFrom-StringData -StringData @’
7 = SIMM
8 = DIMM
‘@

}$type = DATA {
ConvertFrom-StringData -StringData @’
0 = Unknown
1 = Other
2 = DRAM
3 = Synchronous DRAM
4 = Cache DRAM
5 = EDO
6 = EDRAM
7 = VRAM
8 = SRAM
9 = RAM
10 = ROM
11 = Flash
12 = EEPROM
13 = FEPROM
14 = EPROM
15 = CDRAM
16 = 3DRAM
17 = SDRAM
18 = SGRAM
19 = RDRAM
20 = DDR
21 = DDR-2
‘@

}Get-WmiObject -Class Win32_PhysicalMemory |
Format-Table BankLabel, PositionInRow, 
@{Name=“Size GB”; Expression={[math]::round($($_.Capacity/1GB), 2)}}, 
DataWidth, DeviceLocator, 
@{Name=“Form factor”; Expression={$form[“$($_.FormFactor)”]}},
@{Name=“Memory type”; Expression={$type[“$($_.MemoryType)”]}}, 
Speed, TotalWidth -autosize

 

 

We can turn to the Win32_PhysicalMemory class. It will show us each memory module, the size, which bank it is in, the speed and the data width

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: