- WMI Library -
WMI Libraly > Win32_MemoryDevice Class

Win32_MemoryDevice Class

The Win32_MemoryDevice class represents the properties of a computer system's memory device along with it's associated mapped addresses.
Namespace value is root/CIMV2.
WMI Provider value is CIMWin32.


Properties

  • Access
  • Access describes whether the media is readable (value=1), writeable (value=2), or both (value=3). "Unknown" (0) and "Write Once" (4) can also be defined.

  • AdditionalErrorData
  • The AdditionalErrorData property contains additional error information. An example is ECC Syndrome, or the return of the check bits if a CRC-based ErrorMethodology is used. In the latter case, if a single bit error is recognized and the CRC algorithm is known, it is possible to determine the exact bit that failed. This type of data (ECC Syndrome, Check Bit, Parity Bit data, or other vendor-supplied information) is included in this field. This property is used only when the ErrorInfo property is not equal to 3.

  • Availability
  • The availability and status of the device. For example, the Availability property indicates that the device is running and has full power (value=3), or is in a warning (4), test (5), degraded (10) or power save state (values 13-15 and 17). Regarding the power saving states, these are defined as follows: Value 13 ("Power Save - Unknown") indicates that the device is known to be in a power save mode, but its exact status in this mode is unknown; 14 ("Power Save - Low Power Mode") indicates that the device is in a power save state but still functioning, and may exhibit degraded performance; 15 ("Power Save - Standby") describes that the device is not functioning but could be brought to full power 'quickly'; and value 17 ("Power Save - Warning") indicates that the device is in a warning state, though also in a power save mode.

  • BlockSize
  • Size in bytes of the blocks which form this StorageExtent. If variable block size, then the maximum block size in bytes should be specified. If the block size is unknown or if a block concept is not valid (for example, for Aggregate Extents, Memory or LogicalDisks), enter a 1.

  • Caption
  • The Caption property is a short textual description (one-line string) of the object.

  • ConfigManagerErrorCode
  • Indicates the Win32 Configuration Manager error code. The following values may be returned:
    0 This device is working properly.
    1 This device is not configured correctly.
    2 Windows cannot load the driver for this device.
    3 The driver for this device might be corrupted, or your system may be running low on memory or other resources.
    4 This device is not working properly. One of its drivers or your registry might be corrupted.
    5 The driver for this device needs a resource that Windows cannot manage.
    6 The boot configuration for this device conflicts with other devices.
    7 Cannot filter.
    8 The driver loader for the device is missing.
    9 This device is not working properly because the controlling firmware is reporting the resources for the device incorrectly.
    10 This device cannot start.
    11 This device failed.
    12 This device cannot find enough free resources that it can use.
    13 Windows cannot verify this device's resources.
    14 This device cannot work properly until you restart your computer.
    15 This device is not working properly because there is probably a re-enumeration problem.
    16 Windows cannot identify all the resources this device uses.
    17 This device is asking for an unknown resource type.
    18 Reinstall the drivers for this device.
    19 Your registry might be corrupted.
    20 Failure using the VxD loader.
    21 System failure: Try changing the driver for this device. If that does not work, see your hardware documentation. Windows is removing this device.
    22 This device is disabled.
    23 System failure: Try changing the driver for this device. If that doesn't work, see your hardware documentation.
    24 This device is not present, is not working properly, or does not have all its drivers installed.
    25 Windows is still setting up this device.
    26 Windows is still setting up this device.
    27 This device does not have valid log configuration.
    28 The drivers for this device are not installed.
    29 This device is disabled because the firmware of the device did not give it the required resources.
    30 This device is using an Interrupt Request (IRQ) resource that another device is using.
    31 This device is not working properly because Windows cannot load the drivers required for this device.

  • ConfigManagerUserConfig
  • Indicates whether the device is using a user-defined configuration.

  • CorrectableError
  • CorrectableError property indicates whether the most recent error was correctable. This property is not used if ErrorInfo is set to 3.
    Values: TRUE or FALSE. If TRUE, the error is correctable.

  • CreationClassName
  • CreationClassName indicates the name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified.

  • Description
  • The Description property provides a textual description of the object.

  • DeviceID
  • The DeviceID property contains a string that uniquely identifies the memory device.
    Example: Memory Device 1

  • EndingAddress
  • The EndingAddress property specifies the ending address referenced by an application or operating system. This memory address is mapped by a memory controller for this memory object.

  • ErrorAccess
  • The ErrorAccess property indicates the memory access operation that caused the last error. This property is valid only when ErrorInfo is not set to 3.

  • ErrorAddress
  • The ErrorAddress property specifies the address of the last memory error. This property is used only when ErrorInfo is not set to 3.

  • ErrorCleared
  • ErrorCleared is a boolean property indicating that the error reported in LastErrorCode property is now cleared.

  • ErrorData
  • The ErrorData property contains data captured from the last memory access with an error. The data occupies the first n octets of the array necessary to hold the number of bits specified by the ErrorTransferSize property. If ErrorTransferSize is 0, then this property is not used.

  • ErrorDataOrder
  • The ErrorDataOrder property indicates the ordering for data stored in the ErrorData property. This property is used only when ErrorTransferSize is 0.

  • ErrorDescription
  • ErrorDescription is a free-form string supplying more information about the error recorded in LastErrorCode property, and information on any corrective actions that may be taken.

  • ErrorGranularity
  • The ErrorGranularity property identifies the level where the error can be resolved.
    Example: Device level.

  • ErrorInfo
  • The ErrorInfo property contains an integer enumeration describing the type of error that occurred most recently. The values, 12-14 are not used with this property. These values indicate whether an error is correctable but this information is found in the CorrectableError property.

  • ErrorMethodology
  • The ErrorMethodology property specifies the types of error checking used by the memory hardware.

  • ErrorResolution
  • The ErrorResolution property specifies the amount of data actually determined to cause the error. This property is unused when the ErrorInfo property is set to 3.

  • ErrorTime
  • The ErrorTime property contains the time that the last memory error occurred. This property is valid only when ErrorInfo is not set to 3.

  • ErrorTransferSize
  • The ErrorTransferSize property specifies the size of the data (containing the last error) being transferred. This property is set to 0 if there is no error.

  • InstallDate
  • The InstallDate property is datetime value indicating when the object was installed. A lack of a value does not indicate that the object is not installed.

  • LastErrorCode
  • LastErrorCode captures the last error code reported by the logical device.

  • Name
  • The Name property defines the label by which the object is known. When subclassed, the Name property can be overridden to be a Key property.

  • NumberOfBlocks
  • Total number of consecutive blocks, each block the size of the value contained in the BlockSize property, which form this storage extent. Total size of the storage extent can be calculated by multiplying the value of the BlockSize property by the value of this property. If the value of BlockSize is 1, this property is the total size of the storage extent.

  • OtherErrorDescription
  • The OtherErrorDescription property provides more information when the ErrorInfo property is set to 1.

  • PNPDeviceID
  • Indicates the Win32 Plug and Play device ID of the logical device. Example: *PNP030b

  • PowerManagementCapabilities
  • Indicates the specific power-related capabilities of the logical device. The array values, 0="Unknown", 1="Not Supported" and 2="Disabled" are self-explanatory. The value, 3="Enabled" indicates that the power management features are currently enabled but the exact feature set is unknown or the information is unavailable. "Power Saving Modes Entered Automatically" (4) describes that a device can change its power state based on usage or other criteria. "Power State Settable" (5) indicates that the SetPowerState method is supported. "Power Cycling Supported" (6) indicates that the SetPowerState method can be invoked with the PowerState input variable set to 5 ("Power Cycle"). "Timed Power On Supported" (7) indicates that the SetPowerState method can be invoked with the PowerState input variable set to 5 ("Power Cycle") and the Time parameter set to a specific date and time, or interval, for power-on.

  • PowerManagementSupported
  • Boolean indicating that the Device can be power managed - ie, put into a power save state. This boolean does not indicate that power management features are currently enabled, or if enabled, what features are supported. Refer to the PowerManagementCapabilities array for this information. If this boolean is false, the integer value 1, for the string, "Not Supported", should be the only entry in the PowerManagementCapabilities array.

  • Purpose
  • A free form string describing the media and/or its use.

  • StartingAddress
  • The StartingAddress property specifies the beginning address referenced by an application or the operating system. This memory address is mapped by a memory controller for this memory object.

  • Status
  • The Status property is a string indicating the current status of the object. Various operational and non-operational statuses can be defined. Operational statuses are "OK", "Degraded" and "Pred Fail". "Pred Fail" indicates that an element may be functioning properly but predicting a failure in the near future. An example is a SMART-enabled hard drive. Non-operational statuses can also be specified. These are "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 on-line, yet the managed element is neither "OK" nor in one of the other states.

  • StatusInfo
  • StatusInfo is a string indicating whether the logical device is in an enabled (value = 3), disabled (value = 4) or some other (1) or unknown (2) state. If this property does not apply to the logical device, the value, 5 ("Not Applicable"), should be used.

  • SystemCreationClassName
  • The scoping System's CreationClassName.

  • SystemLevelAddress
  • The SystemLevelAddress property indicates whether the address information in the ErrorAddress property is a system-level address (TRUE) or a physical address (FALSE). This property is used only when ErrorInfo is not set to 3.
    Values: TRUE or FALSE. If TRUE, ErrorAddress contains a system-level address.

  • SystemName
  • The scoping System's Name.


    Methods

  • SetPowerState
  • SetPowerState defines the desired power state for a logical device and when a device should be put into that state. The desired power state is specified by setting the PowerState parameter to one of the following integer values: 1="Full Power", 2="Power Save - Low Power Mode", 3="Power Save - Standby", 4="Power Save - Other", 5="Power Cycle" or 6="Power Off". The Time parameter (for all state changes, except 5, "Power Cycle") indicates when the power state should be set, either as a regular date-time value or as an interval value (where the interval begins when the method invocation is received). When the PowerState parameter is equal to 5, "Power Cycle", the Time parameter indicates when the device should power on again. Power off is immediate. SetPowerState should return 0 if successful, 1 if the specified PowerState and Time request is not supported, and some other value if any other error occurred. In a subclass, the set of possible return codes could be specified, using a ValueMap qualifier on the method. The strings to which the ValueMap contents are 'translated' may also be specified in the subclass as a Values array qualifier.

  • Reset
  • Requests a reset of the logical device. The return value should be 0 if the request was successfully executed, 1 if the request is not supported and some other value if an error occurred.


    Example WQL

    SELECT * FROM Win32_MemoryDevice
    About this site information

    This contents is created by WMI having class information.
    WMI Environment is Windows Server 2008 R2 Enterprise Edition.

    This link is Microsoft documents for "Managing Windows with WMI".
    That is VB(Visual Basic) scripting sample.
    This link is Microsoft documents for "Advanced Programming Topics in WMI .NET".
    That is VB.net(Visual Basic .net) scripting sample.

    - WMI Library -
    http://library.wmifun.net/

    WMI useful by VB,VB.Net,VC,VC.Net,VC#.Net,VBS(WSH),PowerShell for PC asset management, system monitoring and collecting hardware and software inventory.

    This website is created by Toh.
    Copyright(C) 1997-2016 WMI Fun !!. All rights reserved.
    ^ Go to the top...