PowerShell Logo Small

Get-VolumeScrubPolicy



This is the built-in help made by Microsoft for the command 'Get-VolumeScrubPolicy', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets the status of the volume scrub policy.

SYNTAX


Get-VolumeScrubPolicy [-DriveLetter] <Char[]> [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-VolumeScrubPolicy [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] -ObjectId <String[]> [<CommonParameters>]
Get-VolumeScrubPolicy [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [<CommonParameters>]
Get-VolumeScrubPolicy [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] -FileSystemLabel <String[]> [<CommonParameters>]
Get-VolumeScrubPolicy [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] -Path <String[]> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-VolumeScrubPolicy cmdlet gets the status of the volume scrub policy.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=306999
Get-Volume
Set-VolumeScrubPolicy

REMARKS

<

Examples


Example 1: Get the volume scrub policy

PS C:\>Get-Volume H | Set-VolumeScrubPolicy -Enable $False
PS C:\> Get-VolumeScrubPolicy H



This command sets the volume scrub policy to $False, and then gets the volume scrub policy to verify the change.