NAME
Reset-StorageReliabilityCounter
SYNOPSIS
Resets storage reliability counters for a disk.SYNTAX
Reset-StorageReliabilityCounter [-CimSession
[] [-PassThru] [-ThrottleLimit ] ] Reset-StorageReliabilityCounter -Disk
[ ] Reset-StorageReliabilityCounter -PhysicalDisk
[ ] 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
-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. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false-Disk
Specifies the Disk for which to reset reliability counters. To obtain a Disk object, use the Get-Disk cmdlet.
Required? true Position? named Default value none Accept pipeline input? true(ByValue) Accept wildcard characters? false-PassThru [
Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false] -PhysicalDisk
Specifies the physical disk for which to reset reliability counters. To obtain a PhysicalDisk object, use theGet-PhysicalDisk cmdlet
Required? true Position? named Default value none Accept pipeline input? true(ByValue) Accept wildcard characters? 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 PowerShellr 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. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false] This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216). INPUTS
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StorageReliabilityCounter http://msdn.microsoft.com/library/windows/desktop/jj160542.aspx You can use the pipeline operator to pass an arrary of MSFT_StorageReliabilityCounter objects to the InputObject parameter.OUTPUTS
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StorageReliabilityCounter http://msdn.microsoft.com/library/windows/desktop/jj160542.aspx This cmdlet outputs an array of objects that represent storage reliability counter data.Example 1: Reset the reliability counters for two physical disks
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
The first command gets the storage reliability counters for the physical disk named PhysicalDisk01, and stores thecounters in the $Counter1 variable.
The second command gets the storage reliability counters for the physical disk named PhysicalDisk02, and storesthe counters in the $Counter2 variable.
The last command resets the storage reliability counters for the physical disks stored in $Counter1 and $Counter2.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkId=816472Get-Disk
Get-StorageReliabilityCounter
Get-PhysicalDisk