Remove deduplication from a volume with powershell
First check if there is enough diskspace to expand the files to there original size, plus the size of the current deduplication database.
remove the optimization from the volume
1 |
Start-DedupJob -Volume D: -Type Unoptimization |
See the results of the running Job:
1 |
Get-Dedup-Job |
Next, clean up the database. For this, deduplication must be turned on.
1 |
Start-DedupJob D: -Type GarbageColletion -full |
To turn on deduplication you can explude folders so the deduplication is running but does not do any dedup work.
1 2 |
Set-DedupVolume -Volume D: -ExludeFolder d:\dfs Enable-DedupVolume -Volume D: |
When all is done, disable dedup and remove the feature.
1 2 |
Disable-DedupVolume -Volume D: Remove-WindowsFeature FS-Data-Deduplication |