Configure a KMS host computer to activate volume licensed versions of Office

Applies to: Volume licensed versions of Office Long Term Service Channel (LTSC) 2024, Office LTSC 2021, Office 2019, and Office 2016 (including Project and Visio)

To activate volume licensed versions of Office, including Project, and Visio, you must have a Key Management Service (KMS) host computer. You can configure a Windows Server computer to be a KMS host computer by installing the Volume Activation Services role and then running the Volume Activation Tools wizard.

To enable the KMS host computer to activate Office, you must install the Office Volume License Pack and enter your KMS key on the KMS host computer. Then, you need to activate the KMS key over the internet or by telephone.

If you have a KMS host computer configured to activate Windows, you can configure that same KMS host computer to activate Office. You can also configure a KMS host computer to activate multiple versions of Office, such as Office LTSC 2024, Office LTSC 2021 Office 2019, and Office 2016. In these cases, the KMS host computer must be running an operating system that supports KMS for each of the versions of Office that you want to activate. Also, you need to install the Office Volume License Pack for each version of Office on the KMS host computer and activate a KMS host key for each version of Office.

Office supports KMS host computers running on the following operating systems, depending on which version of Office is activated with KMS:

  • Office LTSC 2024: At least Windows Server 2022 or at least Windows 10 (volume editions)
  • Office LTSC 2021: At least Windows Server 2016 or at least Windows 10 (volume editions)
  • Office 2019: At least Windows Server 2012 or at least Windows 8.1 (volume editions)
  • Office 2016: At least Windows Server 2008 R2 or at least Windows 7 Service Pack 1 (volume editions)

Configure the KMS host computer

To configure the KMS host computer to activate Office, follow these steps. You must be a member of the Administrators group on the KMS host computer.

If your KMS host computer has internet access:

  1. Sign in to the Microsoft 365 admin center and go to Billing > Your products.
  2. Select the Volume licensing tab (only volume licensing administrators can access this section).
  3. Go to the Download and keys tab, then download the KMS key for each product and version of Office that you want to activate using KMS.
  4. Download and run the appropriate Office Volume License Pack executable from the Microsoft Download Center.
  1. Running the executable installs the pack on the KMS host computer and opens the Volume Activation Tools wizard.
  2. Follow the steps in the wizard and enter your KMS key when prompted.
  3. If a firewall is enabled, ensure port 1688 is open to allow the KMS host service through:
    • Go to Control Panel > System and Security > Windows Firewall (or Windows Defender Firewall).
    • Select Allow an app or feature through Windows Firewall.
    • Select Change Settings, check Key Management Service, and select OK.

If the KMS host computer doesn't have internet access, activate it by telephone.

  1. From an elevated command prompt, go to the Windows\system32 folder, and then run the following command:
   cscript slmgr.vbs /dti ACTIVATIONID

Replace ACTIVATIONID with the Activation ID for your version of Office.

  • Activation ID for Office LTSC 2024: F3D89BBF-C0EC-47CE-A8FA-E5A5F97E447F
  • Activation ID for Office LTSC 2021: 47F3B983-7C53-4D45-ABC6-BCD91E2DD90A
  • Activation ID for Office 2019: 70512334-47B4-44DB-A233-BE5EA33B914C
  • Activation ID for Office 2016: 98EBFE73-2084-4C97-932C-C0CD1643BEA7

    The result of running this command is a 36-digit installation ID. Paste the installation ID number into Notepad, and then break it up into six groups of six numbers.
  1. At the command line, run the following command:
  slui.exe 4

This command launches the Windows phone activation wizard and it displays a telephone number.
After obtaining the telephone number, cancel the wizard. You can ignore the activation ID displayed by the wizard. It's for Windows.

  1. Call the telephone number. At each prompt, enter a group of six numbers. This 36-digit number is the installation ID that you obtained in step 1.
  2. When you hear the response, write down the numbers. These numbers are your confirmation ID.
  3. At the command line, run the following command:
cscript slmgr.vbs /atp CONFIRMATIONID ACTIVATIONID

Replace CONFIRMATIONID with the 48-digit confirmation ID that you received over the telephone.

Replace ACTIVATIONID with the Activation ID for your version of Office.

  • Activation ID for Office LTSC 2024: F3D89BBF-C0EC-47CE-A8FA-E5A5F97E447F
  • Activation ID for Office LTSC 2021: 47F3B983-7C53-4D45-ABC6-BCD91E2DD90A
  • Activation ID for Office 2019: 70512334-47B4-44DB-A233-BE5EA33B914C
  • Activation ID for Office 2016: 98EBFE73-2084-4C97-932C-C0CD1643BEA7

You should see a message that the confirmation ID was successfully deposited.

Verify activations by the KMS host computer

After you set up the KMS host computer, KMS clients send requests for activation and increment the current count of activations. The current count must be 5 or more before KMS clients are activated. The maximum current count is double the activation threshold, or 10. You can also check the KMS log from the Applications and Services Logs folder for event ID 12290, the ID for KMS-related activity. The KMS log records activation requests from KMS clients. Each event displays the name of the computer and the time stamp of each activation request.

Verify the KMS key is successfully installed and activated

From an elevated command prompt on the KMS host computer, run the following command:

   cscript slmgr.vbs /dlv all

To view information only for a specific version of Office, specify that version's Activation ID after the /dlv parameter. For example, for Office 2019:

    cscript slmgr.vbs /dlv 70512334-47B4-44DB-A233-BE5EA33B914C

The following text is an example of the output for Office 2016. The line that says: "License Status: Licensed" indicates that your KMS host computer is successfully activated.

Name: Office 16, OfficeKMSHostVL_KMS_Host edition
Description: Office 16, VOLUME_KMS channel
Activation ID: 98EBFE73-2084-4C97-932C-C0CD1643BEA7
Application ID: 0ff1ce16-a989-479d-af46-f275c6370663
Extended PID: 05426-00206-234-001162-03-1033-9200.0000-0992013
Installation ID: 020650770493837252929082195773527024195725809211989214
Use License URL: https://activation.sls.microsoft.com/SLActivateProduct/SLActiva
teProduct.asmx?configextension=o16
Validation URL: https://go.microsoft.com/fwlink/p/?LinkID=187557
Partial Product Key: KDQ2G
License Status: Licensed
Remaining Windows rearm count: 1000
Trusted time: 10/26/2016 9:58:33 AM
Key Management Service is enabled on this machine
   Current count: 0
   Listening on Port: 1688
   DNS publishing enabled
   KMS priority: Normal
Key Management Service cumulative requests received from clients
   Total requests received: 0
   Failed requests received: 0
   Requests with License Status Unlicensed: 0
   Requests with License Status Licensed: 0
   Requests with License Status Initial grace period: 0
   Requests with License Status License expired or Hardware out of tolerance: 0
   Requests with License Status Non-genuine grace period: 0
   Requests with License Status Notification: 0