The Set-ReFSDedupScrubSchedule cmdlet sets the deduplication scrub schedule on the specified ReFS
volume. The scrub schedule specifies when and how often scrub jobs are run on the volume.
This example sets the deduplication scrub schedule on the D: ReFS volume to run every Monday and
Thursday at 8:00 AM, starting on December 1st, 2024, and running every 2 weeks.
Parameters
-Days
Specifies the days of the week on which to run the scrub schedule. Acceptable values are:
Specifies whether to include only deduplicated data in the scrub schedule.
Parameter properties
Type:
Boolean
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Start
Specifies the date and time on which to start the scrub schedule.
Parameter properties
Type:
DateTime
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Volume
Specifies the ReFS volume on which to set the deduplication scrub schedule. Enter one or more volume
IDs, drive letters, or volume GUID paths. For drive letters, use the format D:. For volume GUID
paths, use the format \\?\Volume{{GUID}}\. Separate multiple volumes with a comma.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
0
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-WeeksInterval
Specifies the number of weeks between each run of the scrub schedule.
Parameter properties
Type:
UInt16
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.