Windows 8 KMS Activation Error: Event ID 1017 0xC004F050

When configuring a Horizon View environment for Windows 8 activation, I was receiving Event ID 1017 Installation of the Proof of Purchase failed. 0xC004F050


The KMS Server is a Windows 2008 R2 VM which has HotFix KB2757817 installed to allow activation of Windows Server 2012 or Windows 8 on a Server 2008 R2 VM.

When trying to add the Windows 8 KMS key using

slmgr.vbs /ipk <Windows8KMSKey>

Resulted in the error ‘On a computer running Microsoft Windows non-core edition, run ‘slui.exe 0x2a 0xC004F015 to display the error text.

Error: 0xC004F015


This then meant that my Windows 8 VM’s where stuck in the ‘customizing’ state in Horizon View Administrator.


The fix is simple you need to use a Windows Server 2012 KMS license rather than a Windows 8 KMS license.

slmgr.vbs /ipk <Windows2012KMSKey>

Which returns ‘Installed product key XXXXX-XXXXX-XXXXX-XXXXX successfully’


Then last of all run the command

slmrg.vbs /ato

Which will activate the KMS license.

Relay vCenter Alert Emails Externally

I was fortunate enough to have a second post published on the VMware SMB Blog site.  This particular post is an issue that I faced quite a while back, but it still holds true if you are trying to relay vCenter alerts externally.

From the Bloggers Bench: Relay vCenter Alert Emails Externally

When configuring your vCenter environment, most if not all VMware Administrators will set up email alerting. I covered the configuration of this in Setting Up & configuring Alarms In vCenter Part 1.

Unfortunately, if you leave Exchange 2010 using its Default Receive Connector, you will only receive alerts internally e.g. to the domains which Exchange 2010 is authoritative. This causes a problem if you need to send alerts to a third party e.g. Managed Service Provider.

To demonstrate the issue, I have connected to a vCenter server and then I’m going to telnet to an Exchange 2010 CAS Server on port 25 by issuing the command:

telnet VMF-EX01 25

Once in enter the following:

<Press Enter>
<Press Enter>

Read more over at the VMware SMB Blog

Implementing & Testing Windows Server 2012: Deduplication

Microsoft have introduced deduplication as a standard feature into Windows Server 2012, I’m pretty excited about this, as it brings an enterprise feature set to SMB.

We are going to test deduplication which is part of the File Server role, before we do this what is deduplication and how will it benefit us?

Well deduplication is the process of  eliminating duplicate copies of data.  In most environments you often find large amounts of data which are repeated, think about documents that you work on and click File Save As after a small change.

Within Windows Server 2012 is a little tool called DDPEval.exe which is located in the  \Windows\System32\ directory.  This tool will go away and calculate expected space savings from using deduplication.  We are going to use this to calculate our estimated space savings and then see how this compares to the actual savings.

With this in mind, what data are we going to pop onto the Windows Server 2012 File Server?

  • General – 2,347 Files consisting of 266 Folders and equating to 9.29GB of data.  This is made up of your everyday Office 2010 documents, some PDF’s and JPEG’s, the usual files you find on most servers.
  • PDF – 562 Files consisting of 48 Folders equating to 660MB of data.  These are all PDF’s
  • Pictures – 360 Files equating to 1.21GB of data.  These are JPEGs

These files are my own, and I think I’m pretty good at not duplicating files, so I’m interested in knowing how much space we will save.

Enabling Deduplication

To enable deduplication we need install the File role onto our server. To do this launch Server Manager and click Add Roles & Features

Select Role-based or feature installation and click Next

 Select the server to install the role on, in this case VMF-FILE01 and click Next

Expand File And Storage Services (Installed) then expand File and iSCSI Services and select File Server and Data Deduplication

Click next on Select features

Click Install

Once completed click Close

I have a Data Drive (D:) which is 50GB in size, this is going to be the test basis for deduplication.

I’m now going to copy the data I mentioned at the start of this blog onto the Data D: Drive.

To make thing slightly more interesting, I’m going to make a duplicate of each folder, this will leave us with:

  • 2 x General Folders
  • 2 x PDF Folders
  • 2 x Picture Folders

Screenshot of the Folder Properties

Screenshot of the Folder List

Screenshot of D: Drive Space Used

So now we are ready, let’s run DDPEval.


Jump into the CMD line and go into C:\Windows\System32 and run DDPEval D: /O:C:/DDPEval

This command will run the DDPEval Tool against the D: Drive and create an output file on C: Drive named DDPEval

The results are in, and I’m impressed, Windows believes it can save me 57%.  Let’s see what happens when we enable deduplication.

Configuring Deduplication

By default deduplication happens in the background as a process, however the process is low priority and will be paused if the deduplication process has an impact on system performance.

With this in mind, we are now going to configure and enable deduplication. Go back into Server Manager select File and Storage Service then Volumes and then Disks

Select Disk 1 and then go down to Volumes at the bottom and right click on D: and select Configure Data Deduplication

Enable data deduplication and change the de duplicate files older than (in days) to 0  Then click on Set Deduplication Schedule

Next we will Enable throughout optimization and the start time which works best for me is 22:00 and the task can last 6 hours.  Click OK and then OK again.

As I’m really impatient, I’m going to run a Powershell command to start it now!

Before we do, a quick check on thins from the Volumes View in Server Manager

As you can see, no deduplication has been run yet and we have 27.6GB disk space free.

Right then, Powershell time.  Let’s run Start-DedupJob -Volume D: -Type Optimization which will kick off the scheduled deduplication job

If you want to check on progress run the command Get-DedupJob

Time for a cup of tea whilst this finishes off.

The results are in.

As you can see we have saved a massive 61% Now you might be thinking well that’s not really a fair test as you actually just copied the folders and all the files within General, Pictures and PDF’s.

This time let’s remove the copied folders so we are just left with the three original folders.

Let’s run the Powershell CMD Start0DedupJob -Volume D: -Type Optimization and wait for the results.

I’m impressed again, we have a 23% space saving on, imagine how much this would be within a business!

Deduplication Considerations

When using deduplication, as always you have a number of gotcha’s that I wanted to point out:

  • Cannot be an operating system volume
  • Can only be enabled on a per volume basis.
  • Can be on shared storage, however the partition must be formatted as NTFS
  • Cannot be removable drives
  • Do not use on Exchange or SQL servers
  • Overhead is 1 CPU Core per Deduplication Job/Schedule
  • It can work with DFS R shares with targets having either deduplicated or non deduplicated DFS R shares (note I haven’t tested this, see

Large Files

I performed some further testing with large files, in fact I actually used the Windows Server 2012 ISO which I copied twice, meaning it was using 6.88GB of space rather than 3.44GB.  I wasn’t able to find any issues with using large files and Server 2012 deduplicated the ISO, with savings going up from 2.72GB (on the last test) to 7.13GB on this test.  I’m not 100% sure how Windows has done this as the ISO is only 3.44GB in size and our space savings have increased by 4.41GB!

Final Thoughts

The deduplication feature within Server 2012 is excellent.  It showed space savings of between 23% to 61% on a small amount of data.  It can and should be enabled on File Servers.