< Back

Debug-Volume

Wed Jan 30, 2019 6:01 pm

NAME Debug-Volume



SYNOPSIS

Finds problems with a volume and recommends solutions.





SYNTAX

Debug-Volume [-DriveLetter] <Char[]> [-CimSession <CimSession>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Debug-Volume [-CimSession <CimSession>] [-ThrottleLimit <Int32>] -ObjectId <String[]> [<CommonParameters>]



Debug-Volume [-CimSession <CimSession>] [-ThrottleLimit <Int32>] -Path <String[]> [<CommonParameters>]



Debug-Volume [-CimSession <CimSession>] [-ThrottleLimit <Int32>] -FileSystemLabel <String[]> [<CommonParameters>]



Debug-Volume [-CimSession <CimSession>] [-ThrottleLimit <Int32>] [<CommonParameters>]





DESCRIPTION

The Debug-Volume cmdlet finds problems with a volume and recommends solutions.





PARAMETERS

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



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-DriveLetter <Char[]>

Specifies an array of letters that identify one or more drives or volumes in the system.



Required? true

Position? 1

Default value none

Accept pipeline input? true(ByValue)

Accept wildcard characters? false



-FileSystemLabel <String[]>

Specifies an array of file system labels.



Required? true

Position? named

Default value none

Accept pipeline input? true(ByValue)

Accept wildcard characters? false



-ObjectId <String[]>

Specifies an array of object IDs, as strings.



Required? true

Position? named

Default value none

Accept pipeline input? true(ByValue)

Accept wildcard characters? false



-Path <String[]>

Specifies an array of valid paths.



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.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

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











OUTPUTS

Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageDiagnoseResult









Example 1: Debug a volume



PS C:\\>Get-Volume | ? {?_.HealthStatus -ne "Healthy"} | Debug-Volume



This cmdlet gets the status of volumes where the HealthStatus property does not equal Healthy, and uses the pipeline operator to pass those volumes to

the Debug-Volume cmdlet.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=809338

Format-Volume

Get-Volume

New-Volume

Optimize-Volume

Repair-Volume

Set-Volume