PowerShell Logo Small

Set-VolumeScrubPolicy



This is the built-in help made by Microsoft for the command 'Set-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

Sets the status of the volume scrub policy.

SYNTAX


Set-VolumeScrubPolicy [-DriveLetter] <Char[]> [[-Enable] <Boolean>] [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] [<CommonParameters>]
Set-VolumeScrubPolicy [[-Enable] <Boolean>] [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -Path <String[]> [<CommonParameters>]
Set-VolumeScrubPolicy [[-Enable] <Boolean>] [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [<CommonParameters>]
Set-VolumeScrubPolicy [[-Enable] <Boolean>] [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -ObjectId <String[]> [<CommonParameters>]
Set-VolumeScrubPolicy [[-Enable] <Boolean>] [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -FileSystemLabel <String[]> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-VolumeScrubPolicy cmdlet sets the status of the volume scrub policy. Use this cmdlet to enable or disable the policy.



<

RELATED LINKS

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

REMARKS

<

Examples


Example 1: Set the volume scrub policy status

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



This command gets a volume object, and then sets the volume scrub policy status on that object to $False.