Win32_PhysicalMemoryArray

Win32 Physical Memory Array
root/cimv2dynamickey : Tag

The Win32_PhysicalMemoryArray WMI class represents details about the computer system physical memory. This includes the number of memory devices, memory capacity available, and memory type—for example, system or video memory.

On this page

Main example

List instances

# All instances of Win32_PhysicalMemoryArray, with the main properties
Get-CimInstance -ClassName Win32_PhysicalMemoryArray |
    Select-Object -Property @(
        'Tag'
        'Description'
        'Status'
        'Manufacturer'
        'Model'
        'Version'
        'SerialNumber'
    )

Examples

Filter with WQL

# WQL filter evaluated by the provider: Location = 14 (PC-98/Local bus add-on card)
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Filter 'Location = 14' |
    Select-Object -Property @(
        'Tag'
        'Description'
        'Status'
        'Manufacturer'
        'Model'
        'Version'
        'SerialNumber'
    )

The filter is evaluated by the WMI provider: less data is transferred than with Where-Object.

Decode numeric values

# Lookup table for Location (values documented by Microsoft)
$locationName = @{
    0 = 'Reserved'
    1 = 'Other'
    2 = 'Unknown'
    3 = 'System board or motherboard'
    4 = 'ISA add-on card'
    5 = 'EISA add-on card'
    6 = 'PCI add-on card'
    7 = 'MCA add-on card'
    8 = 'PCMCIA add-on card'
    9 = 'Proprietary add-on card'
    10 = 'NuBus'
    11 = 'PC-98/C20 add-on card'
    12 = 'PC-98/C24 add-on card'
    13 = 'PC-98/E add-on card'
    14 = 'PC-98/Local bus add-on card'
}
# Lookup table for MemoryErrorCorrection (values documented by Microsoft)
$memoryErrorCorrectionName = @{
    0 = 'Reserved'
    1 = 'Other'
    2 = 'Unknown'
    3 = 'None'
    4 = 'Parity'
    5 = 'Single-bit ECC'
    6 = 'Multi-bit ECC'
    7 = 'CRC'
}

Get-CimInstance -ClassName Win32_PhysicalMemoryArray |
    Select-Object -Property @(
        'Tag'
        'Description'
        'Status'
        'Manufacturer'
        'Model'
        'Version'
        'SerialNumber'
    )

Query a remote computer (CIM session)

review before running
# Name of the remote computer
$computerName = 'SERVER01'
# The CIM session (WSMan by default) can be reused for several queries
$cimSession = New-CimSession -ComputerName $computerName
try {
    Get-CimInstance -CimSession $cimSession -ClassName Win32_PhysicalMemoryArray |
        Select-Object -Property @(
            'Tag'
            'Description'
            'Status'
            'Manufacturer'
            'Model'
            'Version'
            'SerialNumber'
        )
} finally {
    Remove-CimSession -CimSession $cimSession
}

WSMan (WinRM) is used by default. For a host without WinRM, create the session with -SessionOption (New-CimSessionOption -Protocol Dcom). Add -Credential to use another account.

Show the class structure

# Class structure: properties, types and flags (Key, ReadOnly…)
$cimClass = Get-CimClass -ClassName Win32_PhysicalMemoryArray
$cimClass.CimClassProperties |
    Select-Object -Property Name, CimType, Flags

Properties

28 of 28 properties
NameTypeAccessDescription
Captionstringread

Short description of the object—a one-line string.

Code
# Value of Caption for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, Caption |
    Select-Object -Property Tag, Caption
CreationClassName keystringread

Name of the first concrete class that appears in the inheritance chain used in the creation of an instance. When used with the other key properties of the class, the property allows all instances of this class and its subclasses to be identified uniquely.

Code
# Value of CreationClassName for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, CreationClassName |
    Select-Object -Property Tag, CreationClassName
Depthreal32read

Depth of the physical package—in inches.

Unit: inches

Code
# Value of Depth for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, Depth |
    Select-Object -Property Tag, Depth
Descriptionstringread

Description of the object.

Code
# Value of Description for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, Description |
    Select-Object -Property Tag, Description
Heightreal32read

Height of the physical package—in inches.

Unit: inches

Code
# Value of Height for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, Height |
    Select-Object -Property Tag, Height
HotSwappablebooleanread

If TRUE, a physical package can be hot-swapped (if it is possible to replace the element with a physically different but equivalent one while the containing package has power applied to it, is "on"). For example, a disk drive package inserted using SCA connectors is removable and can be hot-swapped. All packages that can be hot-swapped are inherently removable and replaceable.

Code
# Value of HotSwappable for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, HotSwappable |
    Select-Object -Property Tag, HotSwappable
InstallDatedatetimeread

Date and time the object was installed. This property does not need a value to indicate that the object is installed.

Code
# Value of InstallDate for each instance
# CIM cmdlets already return a DateTime object: no conversion is needed
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, InstallDate |
    Select-Object -Property Tag, InstallDate
Locationuint16read

Physical location of the memory array.

This value comes from the Location member of the Physical Memory Array structure in the SMBIOS information.

Values (15)
ValueLabelDescription
0Reserved
1Other
2Unknown
3System board or motherboard
4ISA add-on card
5EISA add-on card
6PCI add-on card
7MCA add-on card
8PCMCIA add-on card
9Proprietary add-on card
10NuBus
11PC-98/C20 add-on card
12PC-98/C24 add-on card
13PC-98/E add-on card
14PC-98/Local bus add-on card
Code
# Value of Location for each instance
# Lookup table for Location (values documented by Microsoft)
$locationName = @{
    0 = 'Reserved'
    1 = 'Other'
    2 = 'Unknown'
    3 = 'System board or motherboard'
    4 = 'ISA add-on card'
    5 = 'EISA add-on card'
    6 = 'PCI add-on card'
    7 = 'MCA add-on card'
    8 = 'PCMCIA add-on card'
    9 = 'Proprietary add-on card'
    10 = 'NuBus'
    11 = 'PC-98/C20 add-on card'
    12 = 'PC-98/C24 add-on card'
    13 = 'PC-98/E add-on card'
    14 = 'PC-98/Local bus add-on card'
}
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, Location |
    Select-Object -Property @(
        'Tag'
        @{ Name = 'Location'; Expression = { $locationName[[int]$_.Location] } }
    )
Manufacturerstringread

Name of the organization responsible for producing the physical element.

Code
# Value of Manufacturer for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, Manufacturer |
    Select-Object -Property Tag, Manufacturer
MaxCapacityuint32read

Use the MaxCapacityEx property instead.

This value comes from the Maximum Capacity member of the Physical Memory Array structure in the SMBIOS information.

Windows Server 2012 R2, Windows 8.1, Windows Server 2012, Windows 8, Windows Server 2008 R2, Windows 7, Windows Server 2008 and Windows Vista: Maximum memory size (in bytes) installable for this particular memory array. If the size is unknown, the property is given a value of 0 (zero).

Code
# Value of MaxCapacity for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, MaxCapacity |
    Select-Object -Property Tag, MaxCapacity
MaxCapacityExuint64read

Maximum memory size (in kilobytes) installable for this particular memory array. If the size is unknown, the property is given a value of 0 (zero).

This value comes from the Extended Maximum Capacity member of the Physical Memory Array structure in the SMBIOS information.

Windows Server 2012 R2, Windows 8.1, Windows Server 2012, Windows 8, Windows Server 2008 R2, Windows 7, Windows Server 2008 and Windows Vista: This property is not supported.

Unit: kilobytes

Code
# Value of MaxCapacityEx for each instance
# MaxCapacityEx is expressed in kilobytes: converted to GB
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, MaxCapacityEx |
    Select-Object -Property @(
        'Tag'
        @{ Name = 'MaxCapacityExGB'; Expression = { [math]::Round($_.MaxCapacityEx / 1MB, 2) } }
    )
MemoryDevicesuint16read

Number of physical slots or sockets available in this memory array.

This value comes from the Number of Memory Devices member of the Physical Memory Array structure in the SMBIOS information.

Code
# Value of MemoryDevices for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, MemoryDevices |
    Select-Object -Property Tag, MemoryDevices
MemoryErrorCorrectionuint16read

Type of error correction used by the memory array.

This value comes from the Memory Error Correction member of the Physical Memory Array structure in the SMBIOS information.

Values (8)
ValueLabelDescription
0Reserved
1Other
2Unknown
3None
4Parity
5Single-bit ECC
6Multi-bit ECC
7CRC
Code
# Value of MemoryErrorCorrection for each instance
# Lookup table for MemoryErrorCorrection (values documented by Microsoft)
$memoryErrorCorrectionName = @{
    0 = 'Reserved'
    1 = 'Other'
    2 = 'Unknown'
    3 = 'None'
    4 = 'Parity'
    5 = 'Single-bit ECC'
    6 = 'Multi-bit ECC'
    7 = 'CRC'
}
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, MemoryErrorCorrection |
    Select-Object -Property @(
        'Tag'
        @{ Name = 'MemoryErrorCorrection'; Expression = { $memoryErrorCorrectionName[[int]$_.MemoryErrorCorrection] } }
    )
Modelstringread

Name by which the physical element is generally known.

Code
# Value of Model for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, Model |
    Select-Object -Property Tag, Model
Namestringread

Label by which the object is known. When subclassed, the property can be overridden to be a key property.

Code
# Value of Name for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, Name |
    Select-Object -Property Tag, Name
OtherIdentifyingInfostringread

Additional data, beyond asset tag information, that could be used to identify a physical element. One example is bar code data associated with an element that also has an asset tag. Note that if only bar code data is available and is unique or able to be used as an element key, this property would be NULL and the bar code data used as the class key, in the tag property.

Code
# Value of OtherIdentifyingInfo for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, OtherIdentifyingInfo |
    Select-Object -Property Tag, OtherIdentifyingInfo
PartNumberstringread

Part number assigned by the organization responsible for producing or manufacturing the physical element.

Code
# Value of PartNumber for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, PartNumber |
    Select-Object -Property Tag, PartNumber
PoweredOnbooleanread

If TRUE, the physical element is powered on.

Code
# Value of PoweredOn for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, PoweredOn |
    Select-Object -Property Tag, PoweredOn
Removablebooleanread

If TRUE, a physical package is removable (if it is designed to be taken in and out of the physical container in which it is normally found, without impairing the function of the overall packaging). A package can still be removable if power must be "off" to perform the removal. If power can be "on" and the package removed, then the element is removable and can be hot-swapped. For example, an extra battery in a laptop is removable, as is a disk drive package inserted using SCA connectors. However, the latter can be hot-swapped. A laptop's display is not removable, nor is a nonredundant power supply. Removing these components would affect the function of the overall packaging or is impossible due to the tight integration of the package.

Code
# Value of Removable for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, Removable |
    Select-Object -Property Tag, Removable
Replaceablebooleanread

If TRUE, this physical media component can be replaced with a physically different one. For example, some computer systems allow the main processor chip to be upgraded to one of a higher clock rating. In this case, the processor is said to be replaceable. Another example is a power supply package mounted on sliding rails. All removable packages are inherently replaceable.

Code
# Value of Replaceable for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, Replaceable |
    Select-Object -Property Tag, Replaceable
SerialNumberstringread

Manufacturer-allocated number used to identify the physical element.

Code
# Value of SerialNumber for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, SerialNumber |
    Select-Object -Property Tag, SerialNumber
SKUstringread

Stockkeeping unit number for the physical element.

Code
# Value of SKU for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, SKU |
    Select-Object -Property Tag, SKU
Statusstringread

Current status of the object. Various operational and nonoperational statuses can be defined. Operational statuses include: "OK", "Degraded", and "Pred Fail" (an element, such as a SMART-enabled hard disk drive, may be functioning properly but predicting a failure in the near future). Nonoperational statuses include: "Error", "Starting", "Stopping", and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is online, yet the managed element is neither "OK" nor in one of the other states.

Values include the following:

Values (12)
ValueLabelDescription
OKOK
ErrorError
DegradedDegraded
UnknownUnknown
Pred FailPred Fail
StartingStarting
StoppingStopping
ServiceService
StressedStressed
NonRecoverNonRecover
No ContactNo Contact
Lost CommLost Comm
Code
# Value of Status for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, Status |
    Select-Object -Property Tag, Status
Tag keystringread

Unique identifier of the physical memory array.

Example: "Physical Memory Array 1"

Code
# Value of Tag for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag |
    Select-Object -Property Tag
Useuint16read

How memory is used in the computer system.

This value comes from the Use member of the Physical Memory Array structure in the SMBIOS information.

Values (8)
ValueLabelDescription
0Reserved
1Other
2Unknown
3System memory
4Video memory
5Flash memory
6Non-volatile RAMNonvolatile RAM
7Cache memory
Code
# Value of Use for each instance
# Lookup table for Use (values documented by Microsoft)
$useName = @{
    0 = 'Reserved'
    1 = 'Other'
    2 = 'Unknown'
    3 = 'System memory'
    4 = 'Video memory'
    5 = 'Flash memory'
    6 = 'Non-volatile RAM'
    7 = 'Cache memory'
}
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, Use |
    Select-Object -Property @(
        'Tag'
        @{ Name = 'Use'; Expression = { $useName[[int]$_.Use] } }
    )
Versionstringread

Version of the physical element.

Code
# Value of Version for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, Version |
    Select-Object -Property Tag, Version
Weightreal32read

Weight of the physical package in pounds.

Unit: pounds

Code
# Value of Weight for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, Weight |
    Select-Object -Property Tag, Weight
Widthreal32read

Width of the physical package in inches.

Unit: inches

Code
# Value of Width for each instance
Get-CimInstance -ClassName Win32_PhysicalMemoryArray -Property Tag, Width |
    Select-Object -Property Tag, Width

Remarks

The Win32_PhysicalMemoryArray class is derived from CIM_PhysicalPackage.

Inheritance

Superclass chain

  1. CIM_ManagedSystemElement
  2. CIM_PhysicalElement
  3. CIM_PhysicalPackage
  4. Win32_PhysicalMemoryArray

Known subclasses

No known subclass.

Requirements

Namespace
root/cimv2
Minimum client
Windows Vista
Minimum server
Windows Server 2008
Provider
CIMWin32
MOF file
CIMWin32.mof
DLL
CIMWin32.dll
Class qualifiers

Dynamic Provider("CIMWin32") UUID("{FAF76B99-798C-11D2-AAD1-006008C78BC7}") AMENDMENT

Microsoft source

Source: Microsoft Learn

Descriptions, properties and methods come from the Microsoft documentation (MicrosoftDocs/win32 repository), published under the CC BY 4.0 licence. Formatting and translations are specific to this site; the PowerShell examples are written for it.