Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Reset-StorageReliabilityCounter

Reset-StorageReliabilityCounter

storagereliabilitycounter.cdxml

Synopsis

Resets storage reliability counters for a disk.

Syntax

Reset-StorageReliabilityCounter [-AsJob] [-CimSession] [-PassThru] [-ThrottleLimit] [-InputObject] [<CommonParameters>]

Reset-StorageReliabilityCounter [-AsJob] [-CimSession] [-PassThru] [-ThrottleLimit] [-Disk] [<CommonParameters>]

Reset-StorageReliabilityCounter [-AsJob] [-CimSession] [-PassThru] [-ThrottleLimit] [-PhysicalDisk] [<CommonParameters>]

Detailed Description

The Reset-StorageReliabilityCounter cmdlet resets the storage reliability counters to zero for a virtual disk or physical disk. The cmdlet resets the following storage reliability counters for I/O operations: read latency, write latency, and flush latency. If an unexpected issue with a disk or driver causes high latency, use this cmdlet to discount the sharp rise in latencies when you monitor I/O performance.

Parameters

-AsJob <SwitchParameter>

Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete. The cmdlet immediately returns an object that represents the job and then displays the command prompt. You can continue to work in the session while the job completes. To manage the job, use the *-Job cmdlets. To get the job results, use the Receive-Job cmdlet. For more information about Windows PowerShell® background jobs, see about_Jobs.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-CimSession <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.

Aliases

Session

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Disk <CimInstance>

Specifies a disk as a CIMInstance object. The cmdlet resets the storage reliability counter for the disk that you specify. To obtain a disk, use the Get-Disk cmdlet.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

True (ByValue)

Accept wildcard characters?

false

-InputObject <CimInstance[]>

Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

True (ByValue)

Accept wildcard characters?

false

-PassThru <SwitchParameter>

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-PhysicalDisk <CimInstance>

Specifies a physical disk as a CIMInstance object. The cmdlet resets the storage reliability counter for the physical disk that you specify. To obtain a physical disk object, use the Get-PhysicalDisk cmdlet.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

True (ByValue)

Accept wildcard characters?

false

-ThrottleLimit <Int32>

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.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StorageReliabilityCounter

Return Type

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StorageReliabilityCounter

Notes

None

Examples

Example 1: Reset the reliability counters for two physical disks

The first command gets the storage reliability counters for the physical disk named PhysicalDisk01, and stores the counters in the $Counter1 variable.

The second command gets the storage reliability counters for the physical disk named PhysicalDisk02, and stores the counters in the $Counter2 variable.

The last command resets the storage reliability counters for the physical disks stored in $Counter1 and $Counter2.

PS C:\> $Counter1 = Get-StorageReliabilityCounter -PhysicalDisk (Get-PhysicalDisk "PhysicalDisk01")
PS C:\> $Counter2 = Get-StorageReliabilityCounter -PhysicalDisk (Get-PhysicalDisk "PhysicalDisk02")
PS C:\> Reset-StorageReliabilityCounter -InputObject $Counter1, $Counter2

Online Version
Get-StorageReliabilityCounter
Get-PhysicalDisk