Windows Server 2012 R2/Windows Server 2016 Data Deduplication

Last Update: 16.03.2018

What Data Deduplication Does

  • Data deduplication optimizes the file data on the volume by performing the following steps:
  • Segment the data in each file into small variable-sized chunks.
  • Identify duplicate chunks.
  • Maintain a single copy of each chunk.
  • Compress the chunks.
  • Replace redundant copies of each chunk with a reference to a single copy.
  • Replace each file with a reparse point containing references to its data chunks.

PowerShell commands for Windows Server 2012 R2/Windows Server 2016 Data Deduplication

To install deduplication components on the server

Import-Module ServerManager
Add-WindowsFeature -name FS-Data-Deduplication
Import-Module Deduplication

To enable data deduplication on volume

Enable-DedupVolume E: -UsageType HyperV
Enable-DedupVolume E: -UsageType Default

Type HyperV – Select this if you are configuring deduplication for running virtual machines.
Type Default – Select this if you are configuring deduplication for general data files.

Set the minimum number of days that must pass before a file is deduplicated

Set-Dedupvolume E: -MinimumFileAgeDays 20

To return a list of the volumes that have been enabled for data deduplication

Get-DedupVolume | format-list

Start deduplication job manually

Optimization job:
Start-DedupJob –Volume E: –Type Optimization

Garbage collection job to process deleted or modified data on the volume so that any data chunks no longer referenced are cleaned up:
Start-DedupJob –Volume E: –Type GarbageCollection

Data integrity scrubbing job:
Start-DedupJob –Volume E: –Type Scrubbing

Get the status of deduplication jobs


Query the key status statistics

Get-DedupStatus E: | fl

Get deduplication metadata information

Get-DedupMetadata E:

Deduplication ratios and percentages

Table to understand space reduction percentage and space reduction rate.


Deduplication status for a volume from Windows Server 2012 R2


More information

Data Deduplication Overview
Install and Configure Data Deduplication
Deduplication Cmdlets in Windows PowerShell
Deploying Data Deduplication for VDI storage in Windows Server 2012 R2
What’s New in Data Deduplication for Windows Server 2016


4 thoughts on “Windows Server 2012 R2/Windows Server 2016 Data Deduplication

      • Hi Kalle,

        Yes. This issue happen since my first dedupjob that i ran manually

        LastOptimizationResult Message: “The job process exited unexpectedly” (0x80565345) on first job of deduplication until today. The size of the volume is around 1.6 TB. 10 hours is set for the dedup job.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s