Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows Server 2022 / KMS Activation of Windows Server 2022 and 2019

June 7, 2022 Windows 10Windows 11Windows Server 2019Windows Server 2022

KMS Activation of Windows Server 2022 and 2019

Due to the recent release of the new Windows Server 2022, it’s time to update the KMS activation infrastructure in your domain and add the support of new versions of Windows Server and Windows 11. In this article, we will look at installing the Volume Activation Services role on Windows Server, configuring and activating a KMS server using a KMS Host Key.

If you want to learn more about Microsoft KMS activation, we recommend starting with the article Microsoft KMS Activation FAQ.

Contents:
  • Install Volume Activation Services Role on Windows Server
  • Activating KMS Server on Windows Server 2022/2019
  • Updates to Extend KMS Support for Windows Server 2022 and 2019
  • GVLK Keys for Windows Server 2022, 2019 and Windows 10 LTSC

Install Volume Activation Services Role on Windows Server

To deploy your own KMS server, you need to install the Volume Activation Services role on any of the hosts running Windows Server 2022, 2019, or 2016. If you already have a KMS server on Windows Server 2016 or Windows Server 2019, you can use this existing server (in this case, this section can be skipped).

  1. Install the Volume Activation Services role on your server from the Server Manager console or using the PowerShell command: Install-WindowsFeature -Name VolumeActivation -IncludeAllSubFeature –IncludeManagementToolsinstall volume activation service role on windows server 2022
  2. Enable the Windows Firewall rule that allows to access the KMS server: Enable-NetFirewallRule -Name SPPSVC-In-TCP (this opens access to the server on TCP port 1688).

Activating KMS Server on Windows Server 2022/2019

Next, you need to copy your personal KMS Host Key from your Microsoft account on the Volume Licensing Center website and activate your KMS server using this key.

  1. Sign in to your account on Microsoft Volume Licensing Service Center (VLSC) website and go to License -> Relationship Summary -> Select License ID for your Active License contract -> Product Keys. Copy the KMS host key for Windows Server 2022; get kms host key for windows server 2022 from microsoft licensing portal
    KMS Host Key for Windows Server 2022 is called Windows Srv 2022 DataCtr/Std KMS (or use the Windows Srv 2019 DataCtr/Std KMS key for the previous version of Windows Server 2019 if you do not have Software Assurance subscription). Always use KMS Host Key for the maximum version of Windows Server available in your personal account. KMS server activated with a newer key will be able to activate all previous versions of Windows.
  2. Install the KMS host key using the following command in the elevated command prompt: slmgr /ipk <KMS_host_key_Windows_Server_2022>
    Tip. If you already have a KMS key activated for a previous version of Windows Server on this server, you must first remove it using the command: slmgr /upk
  3. Activate your KMS server in Microsoft: slmgr /ato (the server must have direct access to the Internet to the Microsoft activation servers at least during the activation). Or you can activate the KMS server by phone (for this you need to run the graphical Volume Activation Tools from the Server Manager);
  4. If you want to publish the SRV record of the KMS server in your DNS (for automatic search of the KMS server by clients), run the command: slmgr /sdns
  5. Restart the Software Protection service: Restart-Service -Name sppsvc
  6. If you are going to use this KMS server to activate Microsoft Office products, you need to install the license packages for the Office versions you have. You can find the detailed instructions in the article KMS activation for Microsoft Office 2019/2016);
  7. Make sure your KMS server has been activated successfully. Run the command: slmgr.vbs /dlv Check the following values in the command output: Description = VOLUME_KMS_WS22 channel and License status = Licensed.
  8. Now you can use your KMS server to activate all supported Windows starting from Windows 7 and Windows Server 2008R2 (have officially reached the End of Support) and up to the latest versions of Windows 11 and Windows Server 2022).

Updates to Extend KMS Support for Windows Server 2022 and 2019

You can use KMS hosts with previous versions of Windows Server to activate newer versions of Windows Server 2022 or 2019. But there are a number of limitations.

The KMS host (CSVLK) for activating Windows Server 2022 and Windows 11 (and all previous versions of Windows) can only be installed on Windows Server 2022, 2019, or 2016 (WS 2012R2 is not supported).

You need to install additional updates on Windows Server 2019 or 2016 that extend KMS support for Windows Server 2022. In April 2021, Microsoft released a special update KB5003478. This update is added to the latest cumulative updates for Windows Server. This means that you only need to install any cumulative Windows Server 2019/2016 update released after June 2021.

  • Windows Server 2019 — KB5003646 (June 8, 2021) or later
  • Windows Server 2016 — KB5003638 (June 8, 2021) or later

If you have only a Windows Server 2019 KMS host key, it will activate all Windows versions up to Windows Server 2019 and Windows 10. You can install such a KMS key on Windows Server 2019, 2016, or 2012 R2.

Install these updates on Windows Server 2012 R2:

  • KB3173424  — Servicing Stack Update, July 2016;
  • Any Windows Server 2012 R2 cumulative update released after December 11, 2018 (KB4471320) or newer.

The following updates are necessary on Windows Server 2016:

  • KB4132216 — Servicing Stack Update, May 2018;
  • Any Windows Server 2016 cumulative update released after November 27, 2018 (KB4467681) or newer.

After installing updates and rebooting the KMS server, you can install a new KMS Host Key on it and activate it as described above.

If you have not installed updates to support KMS activation of new versions of Windows Server, then when you install a new Windows key Srv 2022 (or 2019) DataCtr/Std KMS using the following command, an error will appear:

slmgr /ipk <KMS_host_key_Windows_Server_2019_or_2022>

Error: 0xC004F015 On a computer running Microsoft Windows non-core edition, run ‘slui.exe 0x2a 0xC004F015’ to display the error test.

slmgr - Error: 0xC004F015 On a computer running Microsoft Windows non-core edition

At the same time the error with the following description can be found in the Event Viewer logs:

Installation of the Proof of Purchase failed. 0xC004F015
Partial Pkey=xxxxxxxxxxxx
ACID = xxxID

Installation of the Proof of Purchase failed. 0xC004F015

When trying to activate the KMS key via the GUI, the following error appears:

Invalid product key or license mismatch.  Please confirm this product key is entered correctly and is valid for this application or Windows edition.

confirm this product key is entered correctly and is valid for this application or Windows edition

Also, the error may look like this:

0xC004F050 - The Software Licensing Service reported that the product key is invalid.

When you try to activate any client on such a KMS server, an error will appear that the activation server is unavailable (Error code: 0xC004F074 - No Key Management Service (KMS) could be contacted).

To fix this error, you need to install the latest cumulative security updates on your Windows Server KMS host with the Volume Activation Services role.

GVLK Keys for Windows Server 2022, 2019 and Windows 10 LTSC

The list of public KMS activation keys (GVLK – Generic Volume License Key) for different Windows Server 2022, 2019, and Windows 10 LTSC editions are given in the following table:

Windows EditionGVLK Key
Windows Server 2019 DatacenterWMDGN-G9PQG-XVVXX-R3X43-63DFG
Windows Server 2019 StandardN69G4-B89J2-4G8F4-WWYCC-J464C
Windows Server 2019 EssentialsWVDHN-86M7X-466P6-VHXV7-YY726
Windows 10 Enterprise LTSC 2019M7XTQ-FN8P6-TTKYV-9D4CC-J462D
Windows 10 Enterprise N LTSC 201992NFX-8DJQP-P6BBQ-THF9C-7CG2H
Windows Server 2022 DatacenterWX4NM-KYWYW-QJJR4-XV3QB-6VM33
Windows Server 2022 StandardVDYBN-27WPP-V4HQT-9VMD4-VMK7H

To install a public GVLK key on a computer or server, you need to run the command (where xxxx is the GVLK key from the table above, depending on the Windows edition):

slmgr /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
You can manually specify the address and port of the KMS server on which you want to activate your Windows:

slmgr /skms corp-kms1.woshub.com:1688
To activate your Windows instance on a KMS server:

slmgr /ato
To check Windows activation status:
slmgr /dlv

If you want to activate a previously installed evaluation version of Windows Server 2022 on your KMS server, you first have to convert your Windows Server EVAL edition to the full version according to the guide.

25 comments
6
Facebook Twitter Google + Pinterest
previous post
Black Screen While Using Windows Remote Desktop (RDP) Connection
next post
Configuring iSCSI Datastore (LUN) on VMware ESXi

Related Reading

How to Connect VPN Before Windows Logon

November 14, 2023

Removing Azure Arc Setup Feature on Windows Server...

November 9, 2023

Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

November 7, 2023

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

25 comments

ahdung September 26, 2019 - 1:52 am

So how to handle slmgr /ipk got 0xC004F015?

Reply
admin September 30, 2019 - 12:25 pm

Install the latest Servicing Stack and cumulative update for your Windows Server version.

Reply
ldoodle February 20, 2022 - 6:25 pm

Hi,

I am doing my nut in with the Windows Server 2019 CSVLK and GVLKs. The latest version of VAMT from ADK says they are unsupported. My KMS Host is Server 2019 and updated to February 2022 CU. It happily accepts the CSVLKs and GVLKs for all other Server OS, even 2022.

The majority of my Server estate is Server 2019 so in a massive pickle right now.

Thanks

Reply
ldoodle February 20, 2022 - 6:26 pm

Because I can’t even add the GVLKs I can do Install Product Key in VAMT, not will newly build 2019 Server be able to activate.

Have hundreds of Servers so manually installing the product key is an absolute no no.

Reply
HanGyi October 6, 2019 - 1:56 pm

i still can’t activate windows server 2019 and can you help me pls?

Reply
admin October 8, 2019 - 4:44 am

Please, specify your WS 2019 activation error.

Reply
admiPC November 6, 2019 - 3:08 pm

Installation of the Proof of Purchase failed. 0xC004F050
Partial Pkey=922PR
ACID=?
Detailed Error[?]

Reply
Shailesh December 13, 2019 - 11:56 am

if we want to migrate windows 2008 R2 KMS server to Windows 2019 server.. What will be steps involve?

Reply
admin January 15, 2020 - 9:36 am

1) Get your new WS2019 KMS host key from the VLSC
2) Deploy a new server running Windows Server 2019
3) Install the Volume Activation Services role
4) Install the KMS host key, activate your KMS host and update the SRV (_VLMCS) record in DNS by pointing it to the new KMS server

Reply
MANU May 3, 2020 - 12:56 pm

Is it possible to activate LTSC Evaluation build 17763.rs5 on home computer?

Reply
admin May 7, 2020 - 3:28 pm

First, you should upgrade your Evaluation edition to the Full LTSC version, and then use the MAK key to activate your Windows 10 LTSC copy.

Reply
muzzol June 8, 2020 - 12:14 am

how do you upgrade from evaluation to full LTSC?

Reply
Vijesh May 11, 2020 - 11:09 pm

Hi Admin,

OUR KMS host is W2012 R2 server and it has the patch KB3173424 and the latest security update KB4512488. I installed the Windows Srv 2019 DataCtr/Std KMS key on this host machine and it was successful. Now on my client which is a server 2019 std when I try to activate I get an error stating 0XC004F074 No KMS service could be contacted. This client can actually communicate to the host like I can telnet to KMS Host on port 1688 and then I have manually set the KMS host by using the slmgr.vbs /skms hostserver:1688 cmd.

on the cliet I can see event ID 12288 and on the host, I can see event ID 12290. The time settings on both the machines are fine. I am wondering if I am still missing a patch? I haven’t restarted my KMS host server, not sure if that’s needed

Reply
admin May 15, 2020 - 6:34 am

The first of all, check the time on the kms host and client (the time of the server and client should not be so different, otherwise actication requests may be rejected).
Have you activated your KMS host with a new KMS host key?
What version (build) of Windows are you trying to activate?

Reply
Gaurav Chopra June 17, 2020 - 2:39 pm

How to validate if Win2019 Server key is installed on existing KMS host? The dlv command doesn’t give clear picture

Reply
Shailendra Arya July 4, 2020 - 8:26 am

I don’t have KMS server in my home lab environment, I wanted to activate Windows server 2019 Std/DC edition. Will that be possible and what is the key?

Reply
hassif July 21, 2021 - 7:36 pm

error:0xC004f074 the software licensing reported that the computer could not be activated.

Reply
hassif July 21, 2021 - 7:37 pm

windows server 2019 datacentre

Reply
Krzysztof March 29, 2022 - 10:16 am

I have my recent purchase in new portal admin.microsoft.com. I cannot find KMS host key here. I know that for previous version of Windws Server I can grab KMS key from old Microsoft Volume Licensing Service Center portal. Can anyone explain me what’s wrong?

Reply
admin March 29, 2022 - 10:49 am

KMS keys are no longer pre-assigned to Open agreements as use of MAK (Multiple Activation Key) keys is the preferred method for activation.
KSM keys can be assigned, by exception, to Open customers who meet the minimum KMS activation threshold for Windows Server, OS, and Office. To request such an exception, please submit a Web Form request to VLSC Support.

To do this, you must have VLSC Administrator, Key Administrator, or Key Viewer permissions and provide the following information:

Agreement / Enrollment Number or License ID and Authorization.
Product Name (include version and edition).
Last 5 characters of the product key.
The number of host activations required.
Business Justification or Reason for Deployment.

ref. _https://docs.microsoft.com/en-us/licensing/products-keys-faq

Reply
Controll September 27, 2022 - 9:43 am

Corporator? practice install your windows none activated?

Reply
Edric Webster October 9, 2022 - 2:33 pm

The KMS activation is only for 180 days, after 180 days, you need to activate it again , it is troublesome, and if you find a KMS key online , it has as risk of black screen if the key is blocked !

Reply
Ann Le February 7, 2023 - 2:49 am

I tried to install Windows Server 2022 client setup key “slmgr /ipk VDYBN-27WPP-V4HQT-9VMD4-VMK7H” on Windows 2019 (version 1809 build 17763.3887). However it says “0xC004E016 on a computer running Microsoft Windows non-core edition”. It seems the key is invalid to install on Windows 2019. Would you please help give some advice?

Reply
mememe April 25, 2023 - 3:30 pm

Isn’t that the client key not the host key

Reply
serg June 8, 2023 - 6:06 am

To activate virtual machines running on the Hyper-V, you can use the special activation type: AVMA (Automatic Virtual Machine Activation).

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • How to Connect VPN Before Windows Logon

    November 14, 2023
  • Removing Azure Arc Setup Feature on Windows Server 2022

    November 9, 2023
  • Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

    November 7, 2023
  • Send Emails with Microsoft Graph API and PowerShell

    November 6, 2023
  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Repair EFI/GPT Bootloader on Windows 10 or 11
  • How to Restore Deleted EFI System Partition in Windows
  • Network Computers are not Showing Up in Windows 10/11
  • Updating List of Trusted Root Certificates in Windows
  • How to Create a Wi-Fi Hotspot on your Windows PC
  • How to Sign an Unsigned Device Driver in Windows
  • How to Download APPX File from Microsoft Store for Offline Installation?
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top