Update Your KMS Service Key To Activate Windows Server 2012 R2 And Windows 8.1

It’s a great day as Windows Server 2012 R2 and Windows 8.1 bits have gone GA (“General Availability”). So it’s of to the Volume License Servicing Center to get the bits and the keys.

image

Before we start the roll out we need to either bring up a Windows Server 2012 R2 (or Windows 8.1) KMS host or upgrade the existing one that runs Windows Server 2012 or lower. In this example our KMS Service is running on Windows Server 2008 R2 so we need to do a couple of things.

Install the following update: KB 2885698: Update adds support for Windows 8.1 and Windows Server 2012 R2 clients to Windows Server 2008, Windows 7, Windows Server 2008 R2, Windows 8, and Windows Server 2012 KMS hosts (see Windows Server 2012 R2 & Windows 8.1 KMS Service Activation).  If you don’t install this hotfix registering a Windows Server 2012 R2 KMS key will throw an error:

0xc004f015: The Software Licensing Service reported that the license is not installed.
SL_E_PRODUCT_SKU_NOT_INSTALLED

So grab the hotfix and install it from an elevated command prompt. Just follow the instructions and you’ll be fine Smile

image

Once you’ve clicked “Yes” the installation will start

image

image

When the installation has finished you will be asked to restart the server. You need to do so. Just restarting the KMS service ("net stop sppsvc" and "net start sppsvc") doesn’t seem to suffice.

When your server comes back up you’ll be ready to install and activate the Windows Server 2012 R2 KMS key.

First we take a look at the current situation:

slmgr.vbs /dlv => clearly the Windows 2012 KMS key
image

Uninstall the current KMS key using slmgr.vbs /upk, please use an elevated command prompt Winking smile

image

Now you can install the new Windows 2012 R2 KMS key. If you run in to any issues here, restarting the KMS Service can help (("net stop sppsvc" and "net start sppsvc") . Try that first.

slmgr.vbs /ipk PIRAT-ESARE-NOTGE-TTING-AKEY!

Be patient, it’s not instantaneous.

image

The key listed here is for all you wannabe pirates out there, sorry, this is the navy. If you’re, looking for illegal keys, cracks, keygens, activators or dodgy KMS virtual machine for Windows  8.1 activation and such this is not the place Winking smile.

You now need to activate your brand new KMS key running slmgr.vbs /ato

image

Show what’s up and running now by running slmgr.vbs /dlv again and as you can see we’re in business to activate all our Windows Server 2012 R2 and Windows 8.1 hosts. I’m happy to report that our users will be enjoying Windows 8.1 on the clients in 2014 & the infrastructure in the data center will be benefiting form the goodness Windows Server 2012 R2 brings.

image

Windows Server 2012 R2 & Windows 8.1 KMS Service Activation

As with all new versions of Windows since 2008 / Vista we need to set up the KMS (Key Management Service) to support the newest versions. Our KMS servers are running on Windows Server 2012 now. But perhaps yours are still running on a Windows Server 2008, 2008 R2 or even a Windows 7 or Windows 8 host That’s not a problem.

Microsoft just released KB 2885698 Update adds support for Windows 8.1 and Windows Server 2012 R2 clients to Windows Server 2008, Windows 7, Windows Server 2008 R2, Windows 8, and Windows Server 2012 KMS hosts

This update extends the Key Management Service (KMS) for Windows Vista, Windows Server 2008, Windows 7, Windows Server 2008 R2, Windows 8, and Windows Server 2012 to enable the enterprise licensing of Windows 8.1 and Windows Server 2012 R2.
KMS provides support for the following KMS client activations:

  • Windows Vista
  • Windows Server 2008
  • Windows 7
  • Windows Server 2008 R2
  • Windows 8
  • Windows Server 2012
  • Windows 8.1
  • Windows Server 2012 R2

KMS uses a KMS host key to activate itself on a KMS host and to establish a local activation service in your environment. This update extends support for KMS to provide activation for Windows 8.1 and for Windows Server 2012 R2.

Just grab the package you need via the links in this KB article.

image

Install it before you update the KMS key to avoid any error thrown at you. When our KMS keys are available I’ll be doing an upgrade and will blog about it. For now you can read how this went for us with Windows Server 2012 here.

UPDATE: Well Windows Server 2012 R2 has gone GA on October 17th 2013 and you can read about updating the KMS Service key for that and Windows 8.1 right here.

KMS Client Setup Keys For Windows Server 2012 R2 & Windows 8.1

For those of you looking for the client setup keys; you can find them here:
http://technet.microsoft.com/en-us/library/jj612867.aspx as they have already been added to our trusted Appendix A: KMS Client Setup Keys in the Volume Activation documentation on TechNet.

Automatic Virtual Machine Activation With Windows Server 2012 R2 Datacenter

One more thing. If you’re doing lots of virtualization in various scenarios please take note of Automatic Virtual Machine Activation. Basically this means that your VMs will automatically activate if you’ have the hosts activated properly. Just one more improvement that will make live a bit easier for legal use in certain scenarios. I support that 100%. I just don’t like it when I, the paying customer, have to jump through hoops. I like it when I get great service, easily accessible. Compare it to shopping in  a supermarket. Make it to hard for the paying customers to fend of theft and you’ll see them leave for place where there are more welcome and have a better experience.

Windows Server 2012 KMS Service Activation

Now we have the Windows Server 2012 and Windows 8 RTM bit form our Volume License we need to get some housekeeping done. The first thing we do is setup or update our KMS Service.

In our case it is running on Windows Server 2008 R2 so we need to do a couple of things.

Install the following update: An update is available for Windows 7 and Windows Server 2008 R2 KMS hosts to support Windows 8 and Windows Server 2012 as described in KB2691586. This is also the place where you can request this hotfix.  If you don’t install this hotfix registering a Windows Server 2012  KMS will throw an Error: 0xC004F050 The Software Licensing Service reported that the product key is invalid

So request the hotfix and install it from an elevated command prompt. Just follow the instructions and you’ll be fine Smile

image

Once you’ve clicked OK the installation will start

image

After that’s finished you will be asked to restart the server. Do so. Just restarting the KMS service ("net stop sppsvc" and "net start sppsvc") doesn’t suffice.

image

Now we have that out the way we can start putting our brand new KMS key into action.

Let’s take a look at what is already running:

slmgr.vbs /dlv => clearly the Windows 2008 R KMS key
image

Uninstall the current KMS key using slmgr.vbs /upk, please use an elevated command prompt Winking smile

image

 

Now you can install the new KMS key. The key listed here is obviously a demo one Winking smile If you run in to any issues here, restarting the KMS Service can help. Try that first.

slmgr.vbs /ipk NOPEI-AMNOT-GIVIN-GITTO-YOU!!

image

 

Now activate your brandnew KMS key running slmgr.vbs /ato

image

 

Show what’s up and running now by running slmgr.vbs /dlv again and as you can see we’re in business to activate all our Windows Server 2012 and Windows 8 hosts. Life is good Smile

image

Upgrading Windows Server 2008R2 Editions With DISM

When an environment evolves (growth, mergers, different needs) you have might very well have resource needs above and beyond the  limits of the original Windows edition that was installed. Scaling out might not the right (or possible) solution you so scale up is alternative option. Today with Windows Server 2008 R2 this is very easy. However, again and again I see people resorting labor intensive and often tedious solutions. Some go the whole 9 yards and do a complete clean install and migration. Others get creative and do a custom install with the windows media to achieve an in place upgrade. But all this isn’t needed at all. Using DISM (Windows Edition-Servicing Command-Line Options) you can achieve anything you need and every role, feature, app on your server will remain in good working condition. Recently I had to upgrade some standard edition Hyper-V guest servers to the enterprise edition to make use of more than 32 GB of RAM. Another reason might be to move from Windows Server 2008 R2 Enterprise Edition to Data Center Edition for hyper-v host to make use of that specific licensing model for virtual machines.

Please note the following:

  • You can only do upgrades. You CANNOT downgrade
  • The server you upgrade cannot be a domain controller (demote, upgrade, promote)
  • This works on Standard, Enterprise edition, both full & core installations.
  • You cannot switch form core to full or vice versa. It’s edition upgrade only, not  for switching type of install.

This is how to find the possible target editions for your server:

C:Windowssystem32>DISM /online /Get-TargetEditions

Deployment Image Servicing and Management tool
Version: 6.1.7600.16385

Image Version: 6.1.7600.16385
Editions that can be upgraded to:

Target Edition : ServerDataCenter
Target Edition : ServerEnterprise

The operation completed successfully.

So I went to Enterprise Edition by executing this process takes some time but is painless but for one reboot.

C:Windowssystem32>Dism /online /Set-Edition:ServerEnterprise /ProductKey:489J6-VHDMP-X63PK-3K798-CPX3Y

Deployment Image Servicing and Management tool
Version: 6.1.7600.16385

Image Version: 6.1.7600.16385

Starting to update components...
Starting to install product key...
Finished installing product key.

Removing package Microsoft-Windows-ServerStandardEdition~31bf3856ad364e35~amd64~~6.1.7601.17514
[==========================100.0%==========================]
Finished updating components.

Starting to apply edition-specific settings...
Restart Windows to complete this operation.
Do you want to restart the computer now (Y/N)?

You either use a MAK key (if you don’t have a KMS server) or the default key for your volume license media. When you have KMS in place (and the matching server group KMS key A, B, or C) the activation will be done automatically and transparent for you. Standard trouble shooting applies if you run into an issue there.

These are the public keys for use with a KMS server:

  • Windows 7 Professional – FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
  • Windows 7 Professional N – MRPKT-YTG23-K7D7T-X2JMM-QY7MG
  • Windows 7 Enterprise – 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
  • Windows 7 Enterprise N – YDRBP-3D83W-TY26F-D46B2-XCKRJ
  • Windows 7 Enterprise E – C29WB-22CC8-VJ326-GHFJW-H9DH4
  • Windows Server 2008 R2 HPC Edition – FKJQ8-TMCVP-FRMR7-4WR42-3JCD7
  • Windows Server 2008 R2 Datacenter – 74YFP-3QFB3-KQT8W-PMXWJ-7M648
  • Windows Server 2008 R2 Enterprise – 489J6-VHDMP-X63PK-3K798-CPX3Y
  • Windows Server 2008 R2 for Itanium-Based Systems – GT63C-RJFQ3-4GMB6-BRFB9-CB83V
  • Windows Server 2008 R2 Standard – YC6KT-GKW9T-YTKYR-T4X34-R7VHC
  • Windows Web Server 2008 R2 – 6TPJF-RBVHG-WBW2R-86QPH-6RTM4

Don’t worry this is public information (KMS Client Setup Keys), these will only activate if you have a KMS server and the to key make that KMS server work.

Either way there is no need for reinstall & migration or upgrade installation in for a simple upgrade scenario So do your self a  favor and always check if you can use DSIM to achieve your goals!