Windows Server 2012 R2 / Windows 8.1 KMS Service Activation

This is an update from another post I did https://wibier.me/windows-server-2012-kms-service-activation/

In that post I describe how to add support for Server 2012 and Windows 8. Now we are at the point where we want to add support for Server 2012 R2 and Windows 8.1! And that is possible.

So when you activate a Server 2012 R2 KMS key you will still get the same error:

Or when you add the KMS key itself:

Error: 0xC004F050 The Software Licensing Service reported that the product key is invalid

To resolve:

Download and install the following update: KB2885698 (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).

Installation instructions

If you have a KMS host that is running Windows Vista, Windows Server 2008, Windows 7, Windows Server 2008 R2, Windows 8, or Windows Server 2012, follow these steps to perform an upgrade:

  • Install the update (update 2885698).
  • Restart the computer when you are prompted to do so.
  • To install a new KMS host key for Windows 8.1 activation or for Windows Server 2012 R2 activation, run the following command:
cscript %windir%\system32\slmgr.vbs /ipk <KMS host key>

Note In this command, “<KMS host key>” is a placeholder for the new KMS host key for Windows 8.1 activation or for Windows Server 2012 R2 activation.

Important Every KMS host key is associated with a group of Windows editions. Additionally, a KMS host key that is associated with Windows client operating systems cannot be installed on Windows server operating systems, and vice-versa. This is true for all Windows operating systems except for Windows Server 2003. If you install a KMS host key on a Windows operating system that is not associated with that host key, you receive the following error message:

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


For example, you may receive this error message in the following situations:

  • You try to install a Windows 7 KMS host key (CSVLK) on a Windows Server 2008 R2 KMS host.
  • You try to install a Windows 8 KMS host key (CSVLK) on a Windows Server 2008 R2 KMS host or a Windows Server 2012 KMS host.
  • You try to install a Windows 8.1 KMS host key (CSVLK) on a Windows Server 2008 R2 KMS host or a Windows Server 2012 KMS host or a Windows Server 2012R2 KMS host.
  • To activate the new KMS host key on the host computer, run the following command:
cscript %windir%\system32\slmgr.vbs /ato
  • On an existing Windows Vista or Windows Server 2008 KMS host, restart the service by running the following command:
net stop slsvc && net start slsvc

Microsoft KMS Client Setup Keys

I needed to change a Windows Server 2012 installation from STANDARD to DATACENTER with KMS activation.

The process is still the same as always, but you need the keys. The can be found HERE.

The procedure:

To install a client setup key, open an administrative command prompt on the client,
type slmgr /ipk <setup key> and press ENTER.

If you need to activate it:

To install a client setup key, open an administrative command prompt on the client,
type slmgr /ato and press ENTER.

Windows 2012 and Windows 8 Client Setup Keys

Operating system edition

KMS Client Setup Key

Windows 8 Professional

NG4HW-VH26C-733KW-K6F98-J8CK4

Windows 8 Professional N

XCVCF-2NXM9-723PB-MHCB7-2RYQQ

Windows 8 Enterprise

32JNW-9KQ84-P47T8-D8GGY-CWCK7

Windows 8 Enterprise N

JMNMF-RHW7P-DMY6X-RF3DR-X2BQT

Windows Server 2012 Core

BN3D2-R7TKB-3YPBD-8DRP2-27GG4

Windows Server 2012 Core N

8N2M2-HWPGY-7PGT9-HGDD8-GVGGY

Windows Server 2012 Core Single Language

2WN2H-YGCQR-KFX6K-CD6TF-84YXQ

Windows Server 2012 Core Country Specific

4K36P-JN4VD-GDC6V-KDT89-DYFKP

Windows Server 2012 Server Standard

XC9B7-NBPP2-83J2H-RHMBY-92BT4

Windows Server 2012 Standard Core

XC9B7-NBPP2-83J2H-RHMBY-92BT4

Windows Server 2012 MultiPoint Standard

HM7DN-YVMH3-46JC3-XYTG7-CYQJJ

Windows Server 2012 MultiPoint Premium

XNH6W-2V9GX-RGJ4K-Y8X6F-QGJ2G

Windows Server 2012 Datacenter

48HP8-DN98B-MYWDG-T2DCC-8W83P

Windows Server 2012 Datacenter Core

48HP8-DN98B-MYWDG-T2DCC-8W83P

 

For reference, the legacy (older) keys

Windows 7 and Windows Server 2008 R2

Operating system edition

KMS Client Setup Key

Windows 7 Professional

FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4

Windows 7 Professional N

MRPKT-YTG23-K7D7T-X2JMM-QY7MG

Windows 7 Professional E

W82YF-2Q76Y-63HXB-FGJG9-GF7QX

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 Web

6TPJF-RBVHG-WBW2R-86QPH-6RTM4

Windows Server 2008 R2 HPC edition

TT8MH-CG224-D3D7Q-498W2-9QCTX

Windows Server 2008 R2 Standard

YC6KT-GKW9T-YTKYR-T4X34-R7VHC

Windows Server 2008 R2 Enterprise

489J6-VHDMP-X63PK-3K798-CPX3Y

Windows Server 2008 R2 Datacenter

74YFP-3QFB3-KQT8W-PMXWJ-7M648

Windows Server 2008 R2 for Itanium-based Systems

GT63C-RJFQ3-4GMB6-BRFB9-CB83V

 

Windows Vista and Windows Server 2008

Operating system edition

KMS Client Setup Key

Windows Vista Business

YFKBB-PQJJV-G996G-VWGXY-2V3X8

Windows Vista Business N

HMBQG-8H2RH-C77VX-27R82-VMQBT

Windows Vista Enterprise

VKK3X-68KWM-X2YGT-QR4M6-4BWMV

Windows Vista Enterprise N

VTC42-BM838-43QHV-84HX6-XJXKV

Windows Web Server 2008

WYR28-R7TFJ-3X2YQ-YCY4H-M249D

Windows Server 2008 Standard

TM24T-X9RMF-VWXK6-X8JC9-BFGM2

Windows Server 2008 Standard without Hyper-V

W7VD6-7JFBR-RX26B-YKQ3Y-6FFFJ

Windows Server 2008 Enterprise

YQGMW-MPWTJ-34KDK-48M3W-X4Q6V

Windows Server 2008 Enterprise without Hyper-V

39BXF-X8Q23-P2WWT-38T2F-G3FPG

Windows Server 2008 HPC

RCTX3-KWVHP-BR6TB-RB6DM-6X7HP

Windows Server 2008 Datacenter

7M67G-PC374-GR742-YH8V4-TCBY3

Windows Server 2008 Datacenter without Hyper-V

22XQ2-VRXRG-P8D42-K34TD-G3QQC

Windows Server 2008 for Itanium-Based Systems

4DWFP-JF3DJ-B7DTH-78FJB-PDRHK

Windows Server 2012 KMS Service Activation

So we have Windows Server 2012 and Windows 8 RTM and want to activate them with our KMS server. For this to be successful we need to update our KMS Service, with is currently servicing out Windows Server 2008 R2 servers and Windows 7 clients.

When we try to activate a Server 2012 server the following error will occur:

To resolve this issue:

Download and install the following update: KB2757817 (Update adds support for Windows 8 and Windows Server 2012 to Windows Server 2008, Windows 7, and Windows Server 2008 R2 KMS hosts).

How to obtain this update

The following files are available for download from the Microsoft Download Center:Collapse this tableExpand this table

Operating system Update
All supported x86-based versions of Windows Vista and of Windows Server 2008 Collapse this imageExpand this image

Download the update package now.

(http://www.microsoft.com/downloads/details.aspx?FamilyId=cca1a7a5-10f5-4aea-b0c5-999f2dc9f07f)

All supported x64-based versions of Windows Vista and of Windows Server 2008 Collapse this imageExpand this image

Download the update package now.

(http://www.microsoft.com/downloads/details.aspx?FamilyId=85cdb6a5-9658-47b3-b344-0284954a7379)

All supported IA-64-based versions of Windows Vista and of Windows Server 2008 Collapse this imageExpand this image

Download the update package now.

(http://www.microsoft.com/downloads/details.aspx?FamilyId=799f0f06-cbca-483c-8130-9bb99d8dc87e)

All supported x86-based versions of Windows 7 Collapse this imageExpand this image

Download the update package now.

(http://www.microsoft.com/downloads/details.aspx?FamilyId=a1829040-975f-43ab-877d-5cf4a5382987)

All supported x64-based versions of Windows 7 Collapse this imageExpand this image

Download the update package now.

(http://www.microsoft.com/downloads/details.aspx?FamilyId=23fd50b9-baa5-466f-9dff-af06729f23a9)

All supported x64-based versions of Windows Server 2008 R2 Collapse this imageExpand this image

Download the update package now.

(http://www.microsoft.com/downloads/details.aspx?FamilyId=bd2cda64-6319-4beb-91e3-9439048bf19d)

All supported IA-64-based versions of Windows Server 2008 R2 Collapse this imageExpand this image

Download the update package now.

 

If you don’t install this Update then registering a Windows Server 2012 KMS will throw an Error: 0xC004F050 The Software Licensing Service reported that the product key is invalid.

So install the update (Windows6.1-KB2757817-x64.msu) and restart the server!
Just restarting the KMS service (“net stop sppsvc” and “net start sppsvc“) is NOT enough.

Let’s see what is already running:

slmgr.vbs /dlv => The Windows 2008 R2 KMS key.

Uninstall the current KMS key using slmgr.vbs /upk
(We all know this has to be done from an elevated command prompt..)

Now it is time to install the new KMS key.

slmgr.vbs /ipk {YOUR_SERVER_2012_KMS_KEY}

slmgr.vbs /ato to activate the KMS Service

And now we can check our environment to see what we can activate:

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