- Backing up existing KMS keys There isn't a direct way to "back up" KMS keys, but you can record your current KMS host key and activation information before proceeding. Run the following commands and save the output:
- Check the installed KMS key:
Look for Product Key Channel and Partial Product Key.cscript slmgr.vbs /dlv
- Export the KMS activation count:
cscript slmgr.vbs /dli
- If you have any MAK keys installed on the KMS host, back them up manually by noting them down.
Your KMS keys should also be available in the Volume Licensing Service Center (VLSC) under "Product Keys."
- Installing the new KMS host key After upgrading your KMS host to Windows Server 2022:
- You will need to obtain a new KMS Host Key (CSVLK) from the VLSC.
- Navigate to https://www.microsoft.com/Licensing/servicecenter.
- Log in and find the Windows Server 2022 KMS Host Key (CSVLK).
- Do not use a generic key from Microsoft documentation; you need a valid KMS Host Key from VLSC.
- Installing and activating the new KMS host key Yes, the following commands are correct:
cscript slmgr.vbs /ipk <new_kms_host_key>
- This installs the new KMS Host key.
cscript slmgr.vbs /ato
- This activates the KMS Host with Microsoft.
After activation, verify that the KMS service is running:
cscript slmgr.vbs /dlv
- Look for License Status: Licensed and KMS Host License Status: Licensed.
- Verifying activation of Windows Server 2022, 2019, and 2016 VMs After setting up your new KMS host, check whether your client VMs are activating:
- On each Windows Server 2022/2019/2016 VM, run:
cscript slmgr.vbs /ato
- If activation is successful, the VM is now activated through your KMS host.
- To check activation status:
cscript slmgr.vbs /dli
- This will show whether the server is activated via KMS.
- To view KMS client requests on the KMS host:
cscript slmgr.vbs /dlv
- Look for "KMS Current Count" and ensure it's increasing as clients request activation.
Btw. ensure that Windows Firewall allows inbound connections on TCP port 1688 (KMS default port).
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin