Data Deduplication – How to optimize on Windows

On Windows Server 2012 there is a great feature called Data Duduplication.

I´m running this feature on my hyper-v test environment and on Windows 8.1, and the disk savings when running virtual machines is fantastic!. – try Data Deduplication, it is fantastic.

Data Deduplication requires a dedicated disk to be activated, and creating a partition to dedicate does not work.

But – all Data Deduplication is done by some scheduled maintenence jobs running in the background, if you wish to change these Windows to you needs read on.

Heads up: When running on a laptop or test invironment, running these jobs in the middle of the night (default) is not an option. Soo..


How to change Data Deduplication maintenence Schedules

See all commands by running this in powershell promt: Get-Command -Module Deduplication

Or visit Technet:

See existing Schedules on your computer/server by running: Get-DedupSchedule

Open a Powershell administrator console and run the following commands:

To change the Schedules to 11 AM on weekdays and create an optimization job, run:

New-DedupSchedule -Name “WeeklyOptimization” -Type Optimization -Days Mon,Tues,Wed,Thurs,Fri -Start 12:00 -DurationHours 2

Set-DedupSchedule –Name “WeeklyScrubbing” –Type Scrubbing –Start 11:00 –DurationHours 2 –Days Mon,Tues,Wed,Thurs,Fri –Priority Normal

Set-DedupSchedule –Name “WeeklyGarbageCollection” –Type GarbageCollection –Start 11:00 –DurationHours 2 –Days Mon,Tues,Wed,Thurs,Fri –Priority Normal

If you are planning to run hyper-v VMs on this drive (currently for testing only), run this command:

Enable-DedupVolume -Volume D: -UsageType HyperV

To start the jobs manually, run these commands:

Start-DedupJob D: -Type Scrubbing

Start-DedupJob D: -Type GarbageCollection

Start-DedupJob D: -Type Optimization

To se current status on the jobs, run: Get-DedupJob


I hope that this will help you to better utilize Data Deduplication.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s