I am Dale Hayter, a Microsoft and VMware certified Technical Consultant.

My blog has been built up over the years from my experience of working on an IT helpdesk and also from being out on-site.

Server 2012 Deduplication – Configuring and Powershell Commands

With the release of Server 2012, Microsoft introduced a feature called Deduplication (dedupe). This features basically goes through volumes and finds duplicated files, thus saving space.

In order to configure deduplication you can use server manager, then File and Storage Services

FileAndStorage

Then Volumes

Volumes

Once in here, right click on the volume and then click configure Data Deduplication

Configure

Then in here you can enable dedupe and configure it all.

There are also loads of PowerShell commands you can use to query and configure Deduplication. Before you do anything you will need to import the Dedupe module if its not installed.

Import-Module Deduplication 

To find out the dedupe status you can run :

Get-DedupStatus
Get-dedupstatus

To Enable Duplication on a volume.

Enable-DedupVolume G:

When configuring dedupe it will automatically dedupe files over 30 days. We can change this to any value we like. To change the dedupe to files over 3 days old on the G: drive you would do :-

Set-DedupVolume G: -MinimumFileAgeDays 3

The server will normally dedupe on a schedule. You can check the status of these jobs

Get-DedupJob
Get-dedupjob

If you wish to start a dedupe job straight away then put in the next command.

Start-DedupJob G: –Type Optimization