Enable-DedupVolume `
-Volume E: `
-UsageType HyperV

Get-DedupStatus

Set-DedupVolume `
-Volume H: `
-MinimumFileAgeDays 0 `
-NoCompress $false `
-ExcludeFileType .pdf `
-ExcludeFolder H:\SQL `
-OptimizeInUseFiles `
-MinimumFileSize 50000

 Set-DedupSchedule `
 -Name BackgroundOptimization `
 -Enabled $false

 Set-DedupSchedule `
 -Name PriorityOptimization `
 -Enabled $false

 Get-DedupSchedule `
 -Type GarbageCollection | 
 ForEach-Object { Remove-DedupSchedule -InputObject $_ }

 Get-DedupSchedule `
 -Type Scrubbing | 
 ForEach-Object { Remove-DedupSchedule -InputObject $_ }

New-DedupSchedule `
-Days Monday,Tuesday,Wednesday,Thursday,Friday `
-Type Optimization `
-Start 22:00 `
-DurationHours 8 `
-Name "optimisation jours ouvrables" `
-Enabled $true `
-Priority High `

 New-DedupSchedule `
 -Name "nettoyage memoire" `
 -Type GarbageCollection `
 -DurationHours 12 `
 -Memory 100 `
 -Cores 100 `
 -Priority High `
 -Days Saturday `
 -Start 01:00

 New-DedupSchedule `
 -Name "nettoyage data" `
 -Type Scrubbing `
 -DurationHours 12 `
 -Memory 100 `
 -Cores 100 `
 -Priority High `
 -Days Sunday `
 -Start 01:00

Start-DedupJob `
-Type Optimization `
-Priority Normal `
-Volume H: `
-Preempt `
-memory 50 `
-core 50

Stop-DedupJob `
-Volume H: `

Get-DedupStatus | fl
Get-DedupVolume -Volume H: | FL
Get-DedupSchedule 