| Access# | uint16 | read | Describes the read/write properties of the media. Values (5)| Value | Label | Description |
|---|
| 0 | Unknown | | | 1 | Readable | | | 2 | Writeable | | | 3 | Read/Write Supported | | | 4 | Write Once | |
Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Access for each instance
# Lookup table for Access (values documented by Microsoft)
$accessName = @{
0 = 'Unknown'
1 = 'Readable'
2 = 'Writeable'
3 = 'Read/Write Supported'
4 = 'Write Once'
}
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, Access |
Select-Object -Property @(
'DeviceID'
@{ Name = 'Access'; Expression = { $accessName[[int]$_.Access] } }
)
|
| AdditionalErrorData# | uint8[] | read | Array of octets that hold additional error information. An example is Error Checking and Correcting (ECC) Syndrome, or the return of the check bits if a CRC-based error methodology is used. In the latter case, if a single-bit error is recognized and the CRC algorithm is known, the exact bit that failed can be determined. This type of data (ECC Syndrome, check-bit or parity-bit data, or other vendor supplied information) is included in this field. If the ErrorInfo property is equal to 3 ("OK"), then this property has no meaning. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of AdditionalErrorData for each instance
# AdditionalErrorData is an array: -ExpandProperty returns its items one by one
Get-CimInstance -ClassName CIM_CacheMemory -Property AdditionalErrorData |
Select-Object -ExpandProperty AdditionalErrorData
|
| Associativity# | uint16 | read | Enumeration that defines the system cache associativity. Values (8)| Value | Label | Description |
|---|
| 1 | Other | | | 2 | Unknown | | | 3 | Direct Mapped | | | 4 | 2-way Set-Associative | | | 5 | 4-way Set-Associative | | | 6 | Fully Associative | | | 7 | 8-way Set-Associative | | | 8 | 16-way Set-Associative | |
Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Associativity for each instance
# Lookup table for Associativity (values documented by Microsoft)
$associativityName = @{
1 = 'Other'
2 = 'Unknown'
3 = 'Direct Mapped'
4 = '2-way Set-Associative'
5 = '4-way Set-Associative'
6 = 'Fully Associative'
7 = '8-way Set-Associative'
8 = '16-way Set-Associative'
}
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, Associativity |
Select-Object -Property @(
'DeviceID'
@{ Name = 'Associativity'; Expression = { $associativityName[[int]$_.Associativity] } }
)
|
| Availability# | uint16 | read | Availability and status of the device. Values (21)| Value | Label | Description |
|---|
| 1 | Other | | | 2 | Unknown | | | 3 | Running/Full Power | | | 4 | Warning | | | 5 | In Test | | | 6 | Not Applicable | | | 7 | Power Off | | | 8 | Off Line | | | 9 | Off Duty | | | 10 | Degraded | | | 11 | Not Installed | | | 12 | Install Error | | | 13 | Power Save - Unknown | The device is known to be in a power save mode, but its exact status is unknown. | | 14 | Power Save - Low Power Mode | The device is in a power save state but still functioning, and may exhibit degraded performance. | | 15 | Power Save - Standby | The device is not functioning but could be brought to full power quickly. | | 16 | Power Cycle | | | 17 | Power Save - Warning | The device is in a warning state, though also in a power save mode. | | 18 | Paused | The device is paused. | | 19 | Not Ready | The device is not ready. | | 20 | Not Configured | The device is not configured. | | 21 | Quiesced | The device is quiet. |
Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Availability for each instance
# Lookup table for Availability (values documented by Microsoft)
$availabilityName = @{
1 = 'Other'
2 = 'Unknown'
3 = 'Running/Full Power'
4 = 'Warning'
5 = 'In Test'
6 = 'Not Applicable'
7 = 'Power Off'
8 = 'Off Line'
9 = 'Off Duty'
10 = 'Degraded'
11 = 'Not Installed'
12 = 'Install Error'
13 = 'Power Save - Unknown'
14 = 'Power Save - Low Power Mode'
15 = 'Power Save - Standby'
16 = 'Power Cycle'
17 = 'Power Save - Warning'
18 = 'Paused'
19 = 'Not Ready'
20 = 'Not Configured'
21 = 'Quiesced'
}
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, Availability |
Select-Object -Property @(
'DeviceID'
@{ Name = 'Availability'; Expression = { $availabilityName[[int]$_.Availability] } }
)
|
| BlockSize# | uint64 | read | Size, in bytes, of the blocks that form the storage extent. 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 logical disks), enter a 1 (one). For more information about using uint64 values in scripts, see Scripting in WMI. Unit: bytes Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of BlockSize for each instance
# BlockSize is expressed in bytes: converted to GB
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, BlockSize |
Select-Object -Property @(
'DeviceID'
@{ Name = 'BlockSizeGB'; Expression = { [math]::Round($_.BlockSize / 1GB, 2) } }
)
|
| CacheType# | uint16 | read | Specifies instruction caching, data caching, or both. "Other" and "Unknown" also can be defined. Values (5)| Value | Label | Description |
|---|
| 1 | Other | | | 2 | Unknown | | | 3 | Instruction | | | 4 | Data | | | 5 | Unified | |
Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of CacheType for each instance
# Lookup table for CacheType (values documented by Microsoft)
$cacheTypeName = @{
1 = 'Other'
2 = 'Unknown'
3 = 'Instruction'
4 = 'Data'
5 = 'Unified'
}
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, CacheType |
Select-Object -Property @(
'DeviceID'
@{ Name = 'CacheType'; Expression = { $cacheTypeName[[int]$_.CacheType] } }
)
|
| Caption# | string | read | A short textual description of the object. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Caption for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, Caption |
Select-Object -Property DeviceID, Caption
|
| ConfigManagerErrorCode# | uint32 | read | Win32 Configuration Manager error code. Values (32)| Value | Label | Description |
|---|
| 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 | Failure using the VxD loader. | | | 20 | Your registry might be corrupted. | | | 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. | |
Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ConfigManagerErrorCode for each instance
# Lookup table for ConfigManagerErrorCode (values documented by Microsoft)
$configManagerErrorCodeName = @{
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…'
4 = 'This device is not working properly'
5 = 'The driver for this device needs a resource that Windows…'
6 = 'The boot configuration for this device conflicts with other…'
7 = 'Cannot filter'
8 = 'The driver loader for the device is missing'
9 = 'This device is not working properly because the controlling…'
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…'
15 = 'This device is not working properly because there is…'
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 = 'Failure using the VxD loader'
20 = 'Your registry might be corrupted'
21 = 'System failure: Try changing the driver for this device'
22 = 'This device is disabled'
23 = 'System failure: Try changing the driver for this device'
24 = 'This device is not present, is not working properly, or does…'
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…'
30 = 'This device is using an Interrupt Request (IRQ) resource…'
31 = 'This device is not working properly because Windows cannot…'
}
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, ConfigManagerErrorCode |
Select-Object -Property @(
'DeviceID'
@{ Name = 'ConfigManagerErrorCode'; Expression = { $configManagerErrorCodeName[[int]$_.ConfigManagerErrorCode] } }
)
|
| ConfigManagerUserConfig# | boolean | read | If TRUE, the device is using a user-defined configuration. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ConfigManagerUserConfig for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, ConfigManagerUserConfig |
Select-Object -Property DeviceID, ConfigManagerUserConfig
|
| CorrectableError# | boolean | read | If TRUE, the most recent error was correctable. If the ErrorInfo property is equal to 3 ("OK"), then this property has no meaning. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of CorrectableError for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, CorrectableError |
Select-Object -Property DeviceID, CorrectableError
|
| CreationClassName# key | string | read | Name of the class or subclass used in the creation of an instance. When used with other key properties of the class, this property allows all instances of the class and its subclasses to be uniquely identified. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of CreationClassName for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, CreationClassName |
Select-Object -Property DeviceID, CreationClassName
|
| Description# | string | read | A textual description of the object. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Description for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, Description |
Select-Object -Property DeviceID, Description
|
| DeviceID# key | string | read | Address or other identifying information to uniquely name the logical device. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of DeviceID for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID |
Select-Object -Property DeviceID
|
| EndingAddress# | uint64 | read | Ending address referenced by an application or operating system and mapped by a memory controller for this memory object. The ending address is specified in kilobytes. For more information about using uint64 values in scripts, see Scripting in WMI. Unit: kilobytes Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of EndingAddress for each instance
# EndingAddress is expressed in kilobytes: converted to GB
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, EndingAddress |
Select-Object -Property @(
'DeviceID'
@{ Name = 'EndingAddressGB'; Expression = { [math]::Round($_.EndingAddress / 1MB, 2) } }
)
|
| ErrorAccess# | uint16 | read | Memory access operation that caused the last error. The type of error is described by the ErrorInfo property. If the ErrorInfo property is equal to 3 ("OK"), then this property has no meaning. Values (5)| Value | Label | Description |
|---|
| 1 | Other | | | 2 | Unknown | | | 3 | Read | | | 4 | Write | | | 5 | Partial Write | |
Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ErrorAccess for each instance
# Lookup table for ErrorAccess (values documented by Microsoft)
$errorAccessName = @{
1 = 'Other'
2 = 'Unknown'
3 = 'Read'
4 = 'Write'
5 = 'Partial Write'
}
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, ErrorAccess |
Select-Object -Property @(
'DeviceID'
@{ Name = 'ErrorAccess'; Expression = { $errorAccessName[[int]$_.ErrorAccess] } }
)
|
| ErrorAddress# | uint64 | read | Address of the last memory error. The type of error is described by the ErrorInfo property. If the ErrorInfo property is equal to 3 ("OK"), then this property has no meaning. For more information about using uint64 values in scripts, see Scripting in WMI. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ErrorAddress for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, ErrorAddress |
Select-Object -Property DeviceID, ErrorAddress
|
| ErrorCleared# | boolean | read | If TRUE, the error reported in the LastErrorCode property is now cleared. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ErrorCleared for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, ErrorCleared |
Select-Object -Property DeviceID, ErrorCleared
|
| ErrorData# | uint8[] | read | Data captured during the last erroneous memory access. The data occupies the first *n* octets of the array that are necessary to hold the number of bits specified by the ErrorTransferSize property. If ErrorTransferSize is 0, then this property has no meaning. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ErrorData for each instance
# ErrorData is an array: -ExpandProperty returns its items one by one
Get-CimInstance -ClassName CIM_CacheMemory -Property ErrorData |
Select-Object -ExpandProperty ErrorData
|
| ErrorDataOrder# | uint16 | read | Order of data stored in the ErrorData property. If ErrorTransferSize is 0, then this property has no meaning. Values (3)| Value | Label | Description |
|---|
| 0 | Unknown | | | 1 | Least Significant Byte First | | | 2 | Most Significant Byte First | |
Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ErrorDataOrder for each instance
# Lookup table for ErrorDataOrder (values documented by Microsoft)
$errorDataOrderName = @{
0 = 'Unknown'
1 = 'Least Significant Byte First'
2 = 'Most Significant Byte First'
}
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, ErrorDataOrder |
Select-Object -Property @(
'DeviceID'
@{ Name = 'ErrorDataOrder'; Expression = { $errorDataOrderName[[int]$_.ErrorDataOrder] } }
)
|
| ErrorDescription# | string | read | Free-form string that supplies information about the error recorded in the LastErrorCode property and corrective actions to perform. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ErrorDescription for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, ErrorDescription |
Select-Object -Property DeviceID, ErrorDescription
|
| ErrorInfo# | uint16 | read | Type of error that occurred most recently. The values 12 through 14 are undefined in the CIM schema because DMI mixes the semantics of the error type and whether it was correctable. Whether an error is correctable is indicated in the CorrectableError property. Values (14)| Value | Label | Description |
|---|
| 1 | Other | | | 2 | Unknown | | | 3 | OK | | | 4 | Bad Read | | | 5 | Parity Error | | | 6 | Single-Bit Error | | | 7 | Double-Bit Error | | | 8 | Multi-Bit Error | | | 9 | Nibble Error | | | 10 | Checksum Error | | | 11 | CRC Error | | | 12 | Undefined | | | 13 | Undefined | | | 14 | Undefined | |
Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ErrorInfo for each instance
# Lookup table for ErrorInfo (values documented by Microsoft)
$errorInfoName = @{
1 = 'Other'
2 = 'Unknown'
3 = 'OK'
4 = 'Bad Read'
5 = 'Parity Error'
6 = 'Single-Bit Error'
7 = 'Double-Bit Error'
8 = 'Multi-Bit Error'
9 = 'Nibble Error'
10 = 'Checksum Error'
11 = 'CRC Error'
12 = 'Undefined'
13 = 'Undefined'
14 = 'Undefined'
}
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, ErrorInfo |
Select-Object -Property @(
'DeviceID'
@{ Name = 'ErrorInfo'; Expression = { $errorInfoName[[int]$_.ErrorInfo] } }
)
|
| ErrorMethodology# | string | read | Indicates whether parity or CRC algorithms, ECC or other mechanisms are used. Details on the algorithm can also be supplied. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ErrorMethodology for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, ErrorMethodology |
Select-Object -Property DeviceID, ErrorMethodology
|
| ErrorResolution# | uint64 | read | Specifies the range, in bytes, to which the last error can be resolved. For example, if error addresses are resolved to bit 11 (that is, on a typical page basis), then errors can be resolved to 4 KB boundaries and this property is set to 4000. If the ErrorInfo property is equal to 3 ("OK"), then this property has no meaning. For more information about using uint64 values in scripts, see Scripting in WMI. Unit: bytes Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ErrorResolution for each instance
# ErrorResolution is expressed in bytes: converted to GB
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, ErrorResolution |
Select-Object -Property @(
'DeviceID'
@{ Name = 'ErrorResolutionGB'; Expression = { [math]::Round($_.ErrorResolution / 1GB, 2) } }
)
|
| ErrorTime# | datetime | read | Date and time that the last memory error occurred. The type of error is described by the ErrorInfo property. If the ErrorInfo property is equal to 3 ("OK"), then this property has no meaning. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ErrorTime for each instance
# CIM cmdlets already return a DateTime object: no conversion is needed
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, ErrorTime |
Select-Object -Property DeviceID, ErrorTime
|
| ErrorTransferSize# | uint32 | read | Size of the data transfer, in bits, that caused the last error. A value of 0 indicates no error. If the ErrorInfo property is equal to 3 ("OK"), then this property should be set to 0. Unit: bits Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ErrorTransferSize for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, ErrorTransferSize |
Select-Object -Property DeviceID, ErrorTransferSize
|
| FlushTimer# | uint32 | read | Maximum amount of time, in seconds, dirty lines or buckets may remain in the cache before they are flushed. A value of 0 indicates that a cache flush is not controlled by a flushing timer. Unit: seconds Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of FlushTimer for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, FlushTimer |
Select-Object -Property DeviceID, FlushTimer
|
| InstallDate# | datetime | read | Indicates when the object was installed. Lack of a value does not indicate that the object is not installed. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of InstallDate for each instance
# CIM cmdlets already return a DateTime object: no conversion is needed
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, InstallDate |
Select-Object -Property DeviceID, InstallDate
|
| LastErrorCode# | uint32 | read | Last error code reported by the logical device. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of LastErrorCode for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, LastErrorCode |
Select-Object -Property DeviceID, LastErrorCode
|
| Level# | uint16 | read | Specifies whether this is the primary, secondary or tertiary cache. "Other", "Unknown", and "Not Applicable" also can be defined. Values (6)| Value | Label | Description |
|---|
| 1 | Other | | | 2 | Unknown | | | 3 | Primary | | | 4 | Secondary | | | 5 | Tertiary | | | 6 | Not Applicable | |
Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Level for each instance
# Lookup table for Level (values documented by Microsoft)
$levelName = @{
1 = 'Other'
2 = 'Unknown'
3 = 'Primary'
4 = 'Secondary'
5 = 'Tertiary'
6 = 'Not Applicable'
}
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, Level |
Select-Object -Property @(
'DeviceID'
@{ Name = 'Level'; Expression = { $levelName[[int]$_.Level] } }
)
|
| LineSize# | uint32 | read | Size, in bytes, of a single cache bucket or line. Unit: bytes Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of LineSize for each instance
# LineSize is expressed in bytes: converted to GB
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, LineSize |
Select-Object -Property @(
'DeviceID'
@{ Name = 'LineSizeGB'; Expression = { [math]::Round($_.LineSize / 1GB, 2) } }
)
|
| Name# | string | read | Label by which the object is known. When subclassed, this property can be overridden to be a key property. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Name for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, Name |
Select-Object -Property DeviceID, Name
|
| NumberOfBlocks# | uint64 | read | Number of consecutive blocks, each block the size of the value contained in the BlockSize property, that form the 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 (one), this property is the total size of the storage extent. For more information about using uint64 values in scripts, see Scripting in WMI. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of NumberOfBlocks for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, NumberOfBlocks |
Select-Object -Property DeviceID, NumberOfBlocks
|
| OtherErrorDescription# | string | read | Free form string that provides information if the ErrorType property is set to 1 ("Other"). If it is not set to 1, then this string has no meaning. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of OtherErrorDescription for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, OtherErrorDescription |
Select-Object -Property DeviceID, OtherErrorDescription
|
| PNPDeviceID# | string | read | Indicates the Win32 Plug and Play device identifier of the logical device. Example: "*PNP030b" Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of PNPDeviceID for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, PNPDeviceID |
Select-Object -Property DeviceID, PNPDeviceID
|
| PowerManagementCapabilities# | uint16[] | read | Indicates the specific power-related capabilities of the logical device. Values (8)| Value | Label | Description |
|---|
| 0 | Unknown | The power-related capacities are unknown. | | 1 | Not Supported | Power-related capacities are not supported for this device. | | 2 | Disabled | Power-related capacities have been disabled. | | 3 | Enabled | The power management features are currently enabled but the exact feature set is unknown or the information is unavailable. | | 4 | Power Saving Modes Entered Automatically | The device can change its power state based on usage or other criteria. | | 5 | Power State Settable | The **SetPowerState** method is supported. This method is found on the parent CIM_LogicalDevice class and can be implemented. For more information, see Designing Managed Object Format (MOF) Classes. | | 6 | Power Cycling Supported | The **SetPowerState** method can be invoked with the *PowerState* parameter set to 5 ("Power Cycle"). | | 7 | Timed Power On Supported | The **SetPowerState** method can be invoked with the *PowerState* parameter set to 5 ("Power Cycle") and the *Time* parameter set to a specific date and time, or interval, for power-on. |
Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of PowerManagementCapabilities for each instance
# Lookup table for PowerManagementCapabilities (values documented by Microsoft)
$powerManagementCapabilitiesName = @{
0 = 'Unknown'
1 = 'Not Supported'
2 = 'Disabled'
3 = 'Enabled'
4 = 'Power Saving Modes Entered Automatically'
5 = 'Power State Settable'
6 = 'Power Cycling Supported'
7 = 'Timed Power On Supported'
}
# PowerManagementCapabilities is an array: -ExpandProperty returns its items one by one
Get-CimInstance -ClassName CIM_CacheMemory -Property PowerManagementCapabilities |
Select-Object -ExpandProperty PowerManagementCapabilities |
ForEach-Object -Process { $powerManagementCapabilitiesName[[int]$_] }
|
| PowerManagementSupported# | boolean | read | If TRUE, the device can be power managed, that is, put into a power-save state. If FALSE, the integer value 1 ("Not Supported") should be the only entry in the PowerManagementCapabilities array. This property does not indicate whether power management features are currently enabled, or if enabled, which features are supported. For more information, see the PowerManagementCapabilities array. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of PowerManagementSupported for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, PowerManagementSupported |
Select-Object -Property DeviceID, PowerManagementSupported
|
| Purpose# | string | read | Free form string that describes the media and its use. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Purpose for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, Purpose |
Select-Object -Property DeviceID, Purpose
|
| ReadPolicy# | uint16 | read | Policy employed by the cache for handling read requests. If the read policy is determined individually, that is, for each request, then the value 6 ("Determination per I/O") should be specified. "Other" and "Unknown" are also valid values. Values (6)| Value | Label | Description |
|---|
| 1 | Other | | | 2 | Unknown | | | 3 | Read | | | 4 | Read-Ahead | | | 5 | Read and Read-Ahead | | | 6 | Determination Per I/O | |
Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ReadPolicy for each instance
# Lookup table for ReadPolicy (values documented by Microsoft)
$readPolicyName = @{
1 = 'Other'
2 = 'Unknown'
3 = 'Read'
4 = 'Read-Ahead'
5 = 'Read and Read-Ahead'
6 = 'Determination Per I/O'
}
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, ReadPolicy |
Select-Object -Property @(
'DeviceID'
@{ Name = 'ReadPolicy'; Expression = { $readPolicyName[[int]$_.ReadPolicy] } }
)
|
| ReplacementPolicy# | uint16 | read | Integer enumeration describing the algorithm that determines which cache lines or buckets should be re-used. Values (8)| Value | Label | Description |
|---|
| 1 | Other | | | 2 | Unknown | | | 3 | Least Recently Used (LRU) | | | 4 | First In First Out (FIFO) | First-in, first-out (FIFO). | | 5 | Last In First Out (LIFO) | Last-in, first-out (LIFO). | | 6 | Least Frequently Used (LFU) | Least frequently used (LFU.) | | 7 | Most Frequently Used (MFU) | | | 8 | Data Dependent Multiple Algorithms | Data-dependent multiple algorithms. |
Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ReplacementPolicy for each instance
# Lookup table for ReplacementPolicy (values documented by Microsoft)
$replacementPolicyName = @{
1 = 'Other'
2 = 'Unknown'
3 = 'Least Recently Used (LRU)'
4 = 'First In First Out (FIFO)'
5 = 'Last In First Out (LIFO)'
6 = 'Least Frequently Used (LFU)'
7 = 'Most Frequently Used (MFU)'
8 = 'Data Dependent Multiple Algorithms'
}
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, ReplacementPolicy |
Select-Object -Property @(
'DeviceID'
@{ Name = 'ReplacementPolicy'; Expression = { $replacementPolicyName[[int]$_.ReplacementPolicy] } }
)
|
| StartingAddress# | uint64 | read | Beginning address, referenced by an application or operating system and mapped by a memory controller, for this memory object. The starting address is specified in kilobytes. For more information about using uint64 values in scripts, see Scripting in WMI. Unit: kilobytes Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of StartingAddress for each instance
# StartingAddress is expressed in kilobytes: converted to GB
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, StartingAddress |
Select-Object -Property @(
'DeviceID'
@{ Name = 'StartingAddressGB'; Expression = { [math]::Round($_.StartingAddress / 1MB, 2) } }
)
|
| Status# | string | read | String that indicates the current status of the object. Operational and non-operational status can be defined. Operational status can include "OK", "Degraded", and "Pred Fail". "Pred Fail" indicates that an element is functioning properly, but is predicting a failure (for example, a SMART-enabled hard disk drive). Non-operational status can include "Error", "Starting", "Stopping", and "Service". "Service" can apply during disk mirror-resilvering, reloading a user permissions list, or other administrative work. Not all such work is online, but the managed element is neither "OK" nor in one of the other states. Values include the following: Values (12)| Value | Label | Description |
|---|
| OK | OK | | | Error | Error | | | Degraded | Degraded | | | Unknown | Unknown | | | Pred Fail | Pred Fail | | | Starting | Starting | | | Stopping | Stopping | | | Service | Service | | | Stressed | Stressed | | | NonRecover | NonRecover | | | No Contact | No Contact | | | Lost Comm | Lost Comm | |
Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Status for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, Status |
Select-Object -Property DeviceID, Status
|
| StatusInfo# | uint16 | read | State of the logical device. If this property does not apply to the logical device, the value 5 ("Not Applicable") should be used. Values (5)| Value | Label | Description |
|---|
| 1 | Other | | | 2 | Unknown | | | 3 | Enabled | | | 4 | Disabled | | | 5 | Not Applicable | |
Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of StatusInfo for each instance
# Lookup table for StatusInfo (values documented by Microsoft)
$statusInfoName = @{
1 = 'Other'
2 = 'Unknown'
3 = 'Enabled'
4 = 'Disabled'
5 = 'Not Applicable'
}
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, StatusInfo |
Select-Object -Property @(
'DeviceID'
@{ Name = 'StatusInfo'; Expression = { $statusInfoName[[int]$_.StatusInfo] } }
)
|
| SystemCreationClassName# key | string | read | The scoping system's creation class name. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of SystemCreationClassName for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, SystemCreationClassName |
Select-Object -Property DeviceID, SystemCreationClassName
|
| SystemLevelAddress# | boolean | read | Indicates whether the address information in the ErrorAddress property is a system-level address (TRUE) or a physical address (FALSE). If the ErrorInfo property is equal to 3 ("OK"), then this property has no meaning. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of SystemLevelAddress for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, SystemLevelAddress |
Select-Object -Property DeviceID, SystemLevelAddress
|
| SystemName# key | string | read | The scoping system's name. Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of SystemName for each instance
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, SystemName |
Select-Object -Property DeviceID, SystemName
|
| WritePolicy# | uint16 | read | Defines whether the cache is write-back or write-through, or whether the information "Varies with Address" or is defined individually for each input/output. "Other" and "Unknown" also can be specified. Values (6)| Value | Label | Description |
|---|
| 1 | Other | | | 2 | Unknown | | | 3 | Write Back | | | 4 | Write Through | | | 5 | Varies with Address | | | 6 | Determination Per I/O | |
Code# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of WritePolicy for each instance
# Lookup table for WritePolicy (values documented by Microsoft)
$writePolicyName = @{
1 = 'Other'
2 = 'Unknown'
3 = 'Write Back'
4 = 'Write Through'
5 = 'Varies with Address'
6 = 'Determination Per I/O'
}
Get-CimInstance -ClassName CIM_CacheMemory -Property DeviceID, WritePolicy |
Select-Object -Property @(
'DeviceID'
@{ Name = 'WritePolicy'; Expression = { $writePolicyName[[int]$_.WritePolicy] } }
)
|