Edit

Share via


Get-StorageReliabilityCounter

Gets storage reliability counters.

Syntax

ByPhysicalDisk

Get-StorageReliabilityCounter
    -PhysicalDisk <CimInstance>
    [-CimSession <CimSession[]>]
    [-ThrottleLimit <Int32>]
    [-AsJob]
    [<CommonParameters>]

ByDisk

Get-StorageReliabilityCounter
    -Disk <CimInstance>
    [-CimSession <CimSession[]>]
    [-ThrottleLimit <Int32>]
    [-AsJob]
    [<CommonParameters>]

Description

The Get-StorageReliabilityCounter cmdlet gets the storage reliability counters for the specified disk or physical disk. These counters include information about such things as the device temperature, errors, wear, and length of time the device has been in use.

Examples

Example 1: Get the counters for a specified physical disk

PS C:\>Get-PhysicalDisk -FriendlyName "PhysicalDisk8" | Get-StorageReliabilityCounter | Format-List

ObjectId                : {e24dbc00-a448-11e1-a100-806e6f6e6963}:reliabilitycounter
PassThroughClass        :
PassThroughIds          :
PassThroughNamespace    :
PassThroughServer       :
UniqueId                : {e24dbc00-a448-11e1-a100-806e6f6e6963}:reliabilitycounter
DeviceId                : 8
LoadUnloadCycleCount    : 224
LoadUnloadCycleCountMax : 300000
ManufactureDate         : Year: 2011 Week: 33
PowerOnHours            : 0
ReadErrorsCorrected     : 0
ReadErrorsTotal         : 0
ReadErrorsUncorrected   : 0
StartStopCycleCount     : 80
StartStopCycleCountMax  : 10000
Temperature             : 28
TemperatureMax          : 68
Wear                    :
WriteErrorsCorrected    : 0
WriteErrorsTotal        : 0
WriteErrorsUncorrected  : 0
PSComputerName          :

This command gets the physical disk named PhysicalDisk8, and uses the pipeline operator to pass it to Get-StorageReliabilityCounter, which gets all of its storage reliability counters through another pipeline with Format-List.

Parameters

-AsJob

Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-CimSession

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.

Parameter properties

Type:

CimSession[]

Default value:None
Supports wildcards:False
DontShow:False
Aliases:Session

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Disk

Specifies a disk for which to get storage reliability counters.

Parameter properties

Type:CimInstance
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByDisk
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-PhysicalDisk

Specifies the physical disk object for which to get storage reliability counters. Enter a PhysicalDisk CIM object.

PhysicalDisk objects represent physical disks attached to a storage subsystem and located in a storage pool.

Parameter properties

Type:CimInstance
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByPhysicalDisk
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-ThrottleLimit

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

CimInstance

You can pipe an MSFT_PhysicalDisk object to the PhysicalDisk parameter to get the storage reliability counters for the specified physical disk.

CimInstance

You can pipe an MSFT_Disk object to the Disk parameter to get the storage reliability counters for the specified disk.

Outputs

CimInstance

The Get-StorageReliabilityCounter cmdlet returns a StorageReliabilityCounter object, or an array of StorageReliabilityCounter objects.

Notes

  • When used in Failover Cluster, cmdlets from the Storage module operate on cluster level (all servers in the cluster).