Returns starting and ending addresses for all memory devices installed on a computer.

This script was tested using Kixtart 2001 (412) for Microsoft Windows, available from Kixtart.org.

Kixtart
Edit|Remove
$strComputer = "."
$objWMIService = GetObject("winmgmts:\\"+ $strComputer + "\root\cimv2")
$colItems = $objWMIService.ExecQuery("Select * from Win32_MemoryDevice")
For Each $objItem in $colItems
    ? "Access:" + $objItem.Access
    For Each $x in $objItem.AdditionalErrorData
        ? "Additional Error Data:" + $x
    Next
    ? "Availability:" + $objItem.Availability
    ? "Block Size:" + $objItem.BlockSize
    ? "Caption:" + $objItem.Caption
    ? "Config Manager Error Code:" + $objItem.ConfigManagerErrorCode
    ? "Config Manager User Config:" + $objItem.ConfigManagerUserConfig
    ? "Correctable Error:" + $objItem.CorrectableError
    ? "Creation Class Name:" + $objItem.CreationClassName
    ? "Description:" + $objItem.Description
    ? "Device ID:" + $objItem.DeviceID
    ? "Ending Address:" + $objItem.EndingAddress
    ? "Error Access:" + $objItem.ErrorAccess
    ? "Error Address:" + $objItem.ErrorAddress
    ? "Error Cleared:" + $objItem.ErrorCleared
    For Each $x in $objItem.ErrorData
        ? "Error Data:" + $x
    Next
    ? "Error Data Order:" + $objItem.ErrorDataOrder
    ? "Error Description:" + $objItem.ErrorDescription
    ? "Error Granularity:" + $objItem.ErrorGranularity
    ? "Error Info:" + $objItem.ErrorInfo
    ? "Error Methodology:" + $objItem.ErrorMethodology
    ? "Error Resolution:" + $objItem.ErrorResolution
    ? "Error Time:" + $objItem.ErrorTime
    ? "Error Transfer Size:" + $objItem.ErrorTransferSize
    ? "Install Date:" + $objItem.InstallDate
    ? "Last Error Code:" + $objItem.LastErrorCode
    ? "Name:" + $objItem.Name
    ? "Number Of Blocks:" + $objItem.NumberOfBlocks
    ? "Other Error Description:" + $objItem.OtherErrorDescription
    ? "PNP Device ID:" + $objItem.PNPDeviceID
    For Each $x in $objItem.PowerManagementCapabilities
        ? "Power Management Capabilities:" + $x
    Next
    ? "Power Management Supported:" + $objItem.PowerManagementSupported
    ? "Purpose:" + $objItem.Purpose
    ? "Starting Address:" + $objItem.StartingAddress
    ? "Status:" + $objItem.Status
    ? "Status Info:" + $objItem.StatusInfo
    ? "System Creation Class Name:" + $objItem.SystemCreationClassName
    ? "System Level Address:" + $objItem.SystemLevelAddress
    ? "System Name:" + $objItem.SystemName
Next