Enable-ReFSDedup
Enables data deduplication on a specified ReFS volume.
Syntax
Default (Default)
Enable-ReFSDedup
[-Volume] <String>
[-Type] <DedupVolumeType>
[<CommonParameters>]
Description
The Enable-ReFSDedup cmdlet enables data deduplication on a specified ReFS volume. You can
specify the type of deduplication to use with the -Type parameter.
Examples
Example 1
Enable-ReFSDedup -Volume "D:" -Type DedupAndCompress
This example enables data deduplication with compression on the D: ReFS volume.
Example 2
Enable-ReFSDedup -Volume "E:, F:" -Type DedupAndCompress
This example enables data deduplication with compression on both E: and F: ReFS volumes.
Parameters
-Type
Specifies the type of deduplication to use. Acceptable values are:
CompressDedupDedupAndCompress
Parameter properties
| Type: | DedupVolumeType |
| Default value: | None |
| Accepted values: | Dedup, DedupAndCompress, Compress |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 1 |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Volume
Specifies the volume or volumes to enable ReFS data deduplication. 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 |
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.