I wrote a simple script to run full deduplication. It is handy when you need one-time deduplication including garbage collection and scrubbing job.

$ErrorActionPreference = 'Stop'

Function Wait-RvDedupJob

{

Write-Warning -Message 'Wait for all jobs to finish'

while (Get-DedupJob -ErrorAction SilentlyContinue)

{

Start-Sleep -Seconds 10

}

}

Get-DedupVolume | ForEach-Object -Process `

{

$_.Volume

Wait-RvDedupJob

$_ | Start-DedupJob -Type …

Read More