Skip to content

Commit

Permalink
Added
Browse files Browse the repository at this point in the history
  • Loading branch information
DeploymentBunny committed Apr 27, 2017
1 parent a8dbd8c commit 475ec6a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Tools/Start-VIADeDupJob/Start-VIADeDupJob.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Function Wait-VIADedupJob
{
while ((Get-DedupJob).count -ne 0 )
{
Get-DedupJob
Start-Sleep -Seconds 30
}
}

foreach($item in Get-DedupVolume){
Wait-VIADedupJob
$item | Start-DedupJob -Type Optimization -Priority High -Memory 80
Wait-VIADedupJob
$item | Start-DedupJob -Type GarbageCollection -Priority High -Memory 80 -Full
Wait-VIADedupJob
$item | Start-DedupJob -Type Scrubbing -Priority High -Memory 80 -Full
Wait-VIADedupJob
}
Get-DedupStatus

0 comments on commit 475ec6a

Please sign in to comment.