Beruflich Dokumente
Kultur Dokumente
Win32_PhysicalMemory class
The Win32_PhysicalMemory WMI class represents a physical memory device located on a computer system and
available to the operating system.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited
properties. Properties are listed in alphabetic order, not MOF order.
Syntax
uint16 TotalWidth;
uint16 TypeDetail;
string Version;
};
Members
The Win32_PhysicalMemory class has these types of members:
Properties
Properties
The Win32_PhysicalMemory class has these properties.
Attributes
This value comes from the Attributes member of the Memory Device structure in the SMBIOS information.
BankLabel
This value comes from the Bank Locator member of the Memory Device structure in the SMBIOS
information.
Capacity
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx 2/18
21/04/2018 Win32_PhysicalMemory class (Windows)
This value comes from the Memory Device structure in the SMBIOS version information. For SMBIOS
versions 2.1 thru 2.6 the value comes from the Size member. For SMBIOS version 2.7+ the value comes from
the Extended Size member.
For more information about using uint64 values in scripts, see Scripting in WMI.
Caption
ConfiguredClockSpeed
The configured clock speed of the memory device, in megahertz (MHz), or 0, if the speed is unknown.
This value comes from the Configured Memory Clock Speed member of the Memory Device structure in
the SMBIOS information.
ConfiguredVoltage
This value comes from the Configured voltage member of the Memory Device structure in the SMBIOS
information.
CreationClassName
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx 3/18
21/04/2018 Win32_PhysicalMemory class (Windows)
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.
DataWidth
Data width of the physical memory—in bits. A data width of 0 (zero) and a total width of 8 (eight) indicates
that the memory is used solely to provide error correction bits.
This value comes from the Data Width member of the Memory Device structure in the SMBIOS information.
Description
Description of an object.
DeviceLocator
This value comes from the Device Locator member of the Memory Device structure in the SMBIOS
information.
FormFactor
This value comes from the Form Factor member of the Memory Device structure in the SMBIOS
information.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx 4/18
21/04/2018 Win32_PhysicalMemory class (Windows)
(0)
Unknown
(1)
Other
(2)
SIP
(3)
DIP
(4)
ZIP
(5)
SOJ
(6)
Proprietary
(7)
SIMM
(8)
DIMM
(9)
TSOP
(10)
PGA
(11)
RIMM
(12)
SODIMM
(13)
SRIMM
(14)
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx 5/18
21/04/2018 Win32_PhysicalMemory class (Windows)
SMD
(15)
SSMP
(16)
QFP
(17)
TQFP
(18)
SOIC
(19)
LCC
(20)
PLCC
(21)
BGA
(22)
FPBGA
(23)
LGA
HotSwappable
If TRUE, this physical media component can be replaced with a physically different but equivalent one while
the containing package has the power applied. For example, a fan component may be designed to be hot-
swapped. All components that can be hot-swapped are inherently removable and replaceable.
InstallDate
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx 6/18
21/04/2018 Win32_PhysicalMemory class (Windows)
Date and time the object is installed. This property does not need a value to indicate that the object is
installed.
InterleaveDataDepth
Unsigned 16-bit integer maximum number of consecutive rows of data that are accessed in a single
interleaved transfer from the memory device. If the value is 0 (zero), the memory is not interleaved.
InterleavePosition
Position of the physical memory in an interleave. For example, in a 2:1 interleave, a value of "1" indicates that
the memory is in the "even" position.
0
Noninterleaved
1
First position
2
Second position
Manufacturer
This value comes from the Manufacturer member of the Memory Device structure in the SMBIOS
information.
MaxVoltage
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx 7/18
21/04/2018 Win32_PhysicalMemory class (Windows)
The maximum operating voltage for this device, in millivolts, or 0, if the voltage is unknown.
This value comes from the Maximum voltage member of the Memory Device structure in the SMBIOS
information.
MemoryType
Type of physical memory. This is a CIM value that is mapped to the SMBIOS value. The SMBIOSMemoryType
property contains the raw SMBIOS memory type.
This value comes from the Memory Type member of the Memory Device structure in the SMBIOS
information.
Unknown (0)
Other (1)
DRAM (2)
EDO (5)
EDRAM (6)
VRAM (7)
SRAM (8)
RAM (9)
ROM (10)
Flash (11)
EEPROM (12)
FEPROM (13)
EPROM (14)
CDRAM (15)
3DRAM (16)
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx 8/18
21/04/2018 Win32_PhysicalMemory class (Windows)
SDRAM (17)
SGRAM (18)
RDRAM (19)
DDR (20)
DDR2 (21)
24
DDR3—May not be available; see note above.
25
FBD2
MinVoltage
The minimum operating voltage for this device, in millivolts, or 0, if the voltage is unknown.
This value comes from the Minimum voltage member of the Memory Device structure in the SMBIOS
information.
Model
Name
Label for the object. When subclassed, the property can be overridden to be a key property.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx 9/18
21/04/2018 Win32_PhysicalMemory class (Windows)
OtherIdentifyingInfo
Additional data, beyond asset tag information, that can be used to identify a physical element. One example
is bar code data associated with an element that also has an asset tag. If only bar code data is available and
unique or able to be used as an element key, this property is be NULL and the bar code data is used as the
class key in the tag property.
PartNumber
Part number assigned by the organization responsible for producing or manufacturing the physical element.
This value comes from the Part Number member of the Memory Device structure in the SMBIOS
information.
PositionInRow
Position of the physical memory in a row. For example, if it takes two 8-bit memory devices to form a 16-bit
row, then a value of 2 (two) means that this memory is the second device—0 (zero) is an invalid value for this
property.
PoweredOn
Removable
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx 10/18
21/04/2018 Win32_PhysicalMemory class (Windows)
If TRUE, a physical component 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 component can still
be removable if power must be "off" to perform the removal. If power can be "on" and the component
removed, then the element is removable and can be hot-swapped. For example, an upgradable processor
chip is removable.
Replaceable
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. All removable components are inherently replaceable.
SerialNumber
This value comes from the Serial Number member of the Memory Device structure in the SMBIOS
information.
SKU
SMBIOSMemoryType
The raw SMBIOS memory type. The value of the MemoryType property is a CIM value that is mapped to the
SMBIOS value.
Speed
This value comes from the Speed member of the Memory Device structure in the SMBIOS information.
Status
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.
OK ("OK")
Error ("Error")
Degraded ("Degraded")
Unknown ("Unknown")
Starting ("Starting")
Stopping ("Stopping")
Service ("Service")
Stressed ("Stressed")
NonRecover ("NonRecover")
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx 12/18
21/04/2018 Win32_PhysicalMemory class (Windows)
Tag
Unique identifier for the physical memory device that is represented by an instance of
Win32_PhysicalMemory. This property is inherited from CIM_PhysicalElement.
TotalWidth
Total width, in bits, of the physical memory, including check or error correction bits. If there are no error
correction bits, the value in this property should match what is specified for the DataWidth property.
This value comes from the Total Width member of the Memory Device structure in the SMBIOS
information.
TypeDetail
This value comes from the Type Detail member of the Memory Device structure in the SMBIOS information.
Reserved (1)
Other (2)
Unknown (4)
Fast-paged (8)
Pseudo-static (32)
RAMBUS (64)
Synchronous (128)
CMOS (256)
EDO (512)
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx 13/18
21/04/2018 Win32_PhysicalMemory class (Windows)
Non-volatile (4096)
Nonvolatile
Version
Remarks
The Win32_PhysicalMemory class is derived from CIM_PhysicalMemory.
Examples
The Get-ComputerInfo - Query Computer Info From Local/Remote Computers - (WMI) PowerShell sample on
TechNet Gallery uses a number of calls to hardware and software, including Win32_PhysicalMemory, to display
information about a local or remote system.
The Server Report PowerShell sample on TechNet gallery uses a number of calls to hardware and software,
including Win32_PhysicalMemory, to gather server information and publish in Word document.
The following PowerShell code sample retrieves information regarding the physical memory of the local computer.
Windows PowerShell
function get-WmiMemoryFormFactor {
param ([uint16] $char)
switch ($char) {
0 {"00-Unknown"}
1 {"01-Other"}
2 {"02-SiP"}
3 {"03-DIP"}
4 {"04-ZIP"}
5 {"05-SOJ"}
6 {"06-Proprietary"}
7 {"07-SIMM"}
8 {"08-DIMM"}
9 {"09-TSOPO"}
10 {"10-PGA"}
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx 14/18
21/04/2018 Win32_PhysicalMemory class (Windows)
11 {"11-RIM"}
12 {"12-SODIMM"}
13 {"13-SRIMM"}
14 {"14-SMD"}
15 {"15-SSMP"}
16 {"16-QFP"}
17 {"17-TQFP"}
18 {"18-SOIC"}
19 {"19-LCC"}
20 {"20-PLCC"}
21 {"21-FPGA"}
22 {"22-LGA"}
}
}
Return
}
function get-WmiInterleavePosition {
param ([uint32] $char)
switch ($char) {
0 {"00-Non-Interleaved"}
1 {"01-First Position"}
2 {"02-Second Position"}
}
}
Return
}
switch ($char) {
0 {"00-Unknown"}
1 {"01-Other"}
2 {"02-DRAM"}
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx 15/18
21/04/2018 Win32_PhysicalMemory class (Windows)
3 {"03-Synchronous DRAM"}
4 {"04-Cache DRAM"}
5 {"05-EDO"}
6 {"06-EDRAM"}
7 {"07-VRAM"}
8 {"08-SRAM"}
9 {"09-ROM"}
10 {"10-ROM"}
11 {"11-FLASH"}
12 {"12-EEPROM"}
13 {"13-FEPROM"}
14 {"14-EPROM"}
15 {"15-CDRAM"}
16 {"16-3DRAM"}
17 {"17-SDRAM"}
18 {"18-SGRAM"}
19 {"19-RDRAM"}
20 {"20-DDR"}
}
Return
}
# Do some conversions
$cap=$stick.capacity/1mb
$ff=get-WmiMemoryFormFactor($stick.FormFactor)
$ilp=get-WmiInterleavePosition($stick.InterleavePosition)
$mt=get-WMIMemoryType($stick.MemoryType)
Requirements
Namespace Root\CIMV2
MOF CIMWin32.mof
DLL CIMWin32.dll
See also
CIM_PhysicalMemory
Computer System Hardware Classes
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx 17/18
21/04/2018 Win32_PhysicalMemory class (Windows)
© 2018 Microsoft
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx 18/18