Windows PowerShell command on Get-command Set-VolumeScrubPolicy
MyWebUniversity

Windows PowerShell command on Get-command Set-VolumeScrubPolicy

NAME

Set-VolumeScrubPolicy

SYNOPSIS

Sets the status of the volume scrub policy.

SYNTAX

Set-VolumeScrubPolicy [-DriveLetter] [[-Enable] ] [-CimSession ] [-PassThru]

[-ThrottleLimit ] []

Set-VolumeScrubPolicy [[-Enable] ] [-CimSession ] [-PassThru] [-ThrottleLimit ]

-FileSystemLabel []

Set-VolumeScrubPolicy [[-Enable] ] [-CimSession ] [-PassThru] [-ThrottleLimit ]

-Path []

Set-VolumeScrubPolicy [[-Enable] ] [-CimSession ] [-PassThru] [-ThrottleLimit ]

[]

Set-VolumeScrubPolicy [[-Enable] ] [-CimSession ] [-PassThru] [-ThrottleLimit ]

-ObjectId []

DESCRIPTION

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

the policy.

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

-DriveLetter

Specifies an array of letters that identify one or more drives or volumes in the system. The cmdlet sets the volume scrub policy for the drives or volumes you specify. Required? true Position? 1 Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false

-Enable []

Indicates whether to enable or disable the volume scrub policy. Required? false Position? 2 Default value none Accept pipeline input? false Accept wildcard characters? false

-FileSystemLabel

Specifies an array of file system labels. The cmdlet sets the volume scrub policy for the file system labels you specify. Required? true Position? named Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false

-ObjectId

Specifies an array of IDs, as strings. The ID is not globally unique. Required? true Position? named Default value none

Accept pipeline input? True (ByPropertyName)

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

-Path

Specifies an array of paths. The cmdlet sets the volume scrub policy for the paths you specify. Required? true Position? named Default value none

Accept pipeline input? True (ByPropertyName)

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_Volume http://msdn.microsoft.com/library/windows/desktop/hh830604.aspx You can use the pipeline operator to pass an array of MSFT_Volume objects to the InputObject parameter.

OUTPUTS

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_Volume http://msdn.microsoft.com/library/windows/desktop/hh830604.aspx If you specify the PassThru parameter, this cmdlet returns an object representing the volumes that you were configuring.

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.

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=816494

Get-Volume

Get-VolumeScrubPolicy



Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 OurUNIX.com ™