In this article, we’ll deal with the specifics of MS Office 2019, Office 2016, and Office LTSC 2021 (including Project and Visio) volume activation on a corporate KMS server (please read the article first “FAQ: Understanding Microsoft KMS Volume Activation”). It is assumed that you already have a deployed KMS server running Windows Server 2022/2019 or other Windows versions (see the list of the supported operating systems below).
Corporate customers can activate Office products within the corporate network by using the local KMS server without connecting to Microsoft activation servers on the Internet. Earlier we have already considered the peculiarities of KMS activation of MS Office 2013, and the main principles and approaches to the MS Office 2021, 2019, and 2016 activation on a KMS server remained unchanged.
- This guide applies only to corporate (volume) Office 2019/2016 and Office LTSC 2021 editions and doesn’t cover Office 365 ProPlus, managed via the subscription;
- When deploying a KMS server to activate Windows operating systems, you can use the latest KMS host key to activate all earlier Windows editions. However, to activate previous versions of Office on the KMS server, you need to install the appropriate volume license packs and activate them with their own KMS host key. For example, KMS for MS Office 2019 doesn’t allow to activate previous Office versions (Office 2016, 2013, and 2010).
- System Requirements for the MS Office 2021/2019/2016 KMS Server
- Installing Office 2021/2019/2016 Volume Licenses on KMS Server
- Office 2021/2019/2016 Active Directory-Based Activation (ADBA)
- Manually Activate MS Office 2021/2019/2016 with KMS License Server
- GVLK Keys for Microsoft Office 2021/2019/2016
- KMS Activation Error “vmw.exe has stopped working” on Windows Server 2019/2016
System Requirements for the MS Office 2021/2019/2016 KMS Server
A KMS server for Office can run on the following Windows OS versions:
- KMS server for Office 2016 – requires OS not older than Windows Server 2008 R2 or Windows 7 SP 1 with the KB2757817 installed (yes, you can deploy a KMS server even on a desktop Windows edition);
- KMS server for Office 2019 – requires OS version not lower than Windows Server 2012 or Windows 8.1;
- KMS server for Office LTSC 2021 (the latest perpetual release of Office with EOL October 13, 2026) – you can only deploy it on Windows 10/11 or Windows Server 2016/2019/2022.
Two types of enterprise volume activation are supported:
- Activation on a dedicated KMS host (server);
- Activation through the domain – ADBA (Active Directory-Based Activation), requires the domain functional level at least Windows Server 2012.
Installing Office 2021/2019/2016 Volume Licenses on KMS Server
First of all, you have to find and copy a KMS Host key for Office 2021, 2019, or 2016 in your personal section on the Microsoft Volume Licensing Service Center (VLSC) website.
The next step is to download and install on the KMS server the following extension package – Microsoft Office Volume License Pack. This small package (about 400 KB) contains the files necessary for the KMS server to be able to receive and process activation requests from MS Office clients. Depending on the version of Office that you plan to use, you must download and install the correct version of the Volume License Pack:
- Microsoft Office 2016 Volume License Pack (https://www.microsoft.com/en-us/download/details.aspx?id=49164) – office2016volumelicensepack_4324-1002_en-us_x86.exe;
- Microsoft Office 2019 Volume License Pack (https://www.microsoft.com/en-us/download/details.aspx?id=57342) – office2019volumelicensepack_x64.exe;
- Microsoft Office LTSC 2021 Volume License Pack (https://www.microsoft.com/en-us/download/details.aspx?id=103446) –Office2021VolumeLicensePack_x64.exe.
Download the volumelicensepack file from the Microsoft Download Center and run it as an administrator on the KMS server.
During installation, the Volume Activation Tools window appears, where you have to select the activation type (KMS or ADBA). Both options are described below.
If you are going to use the standard KMS activation, select Key Management Service, specify the FQDN name of your KMS server and the KMS Host Key you got earlier.
Then select the activation method: online or by phone. In the first case, you will have to temporarily provide your KMS server with direct Internet access.
After your KMS server is activated on Microsoft, the current KMS server configuration is displayed. In the Product Key Management list, the entry Name: Office 16, VOLUME_KMS_channel (Office 21, VOLUME_KMSCLIENT channel or Office 19, VOLUME_KMSCLIENT channel) with the licensing status Licensed should appear.
Enable-NetFirewallRule -Name SPPSVC-In-TCP
A KMS activation entry for your version of Office should appear in the Product Key Management list.
Close the Volume Activation wizard, and the Software Protection service will be restarted.
You can get information about the installed KMS key for your version of Office as follows:
For Office LTSC 2021: cscript slmgr.vbs /dlv 47F3B983-7C53-4D45-ABC6-BCD91E2DD90A
For Office 2019 – cscript slmgr.vbs /dlv 70512334-47B4-44DB-A233-BE5EA33B914C
For Office 2016 – cscript slmgr.vbs /dlv 98ebfe73-2084-4c97-932c-c0cd1643bea7
If your KMS server for Office 2019 is successfully configured, something like this will appear:
Name: Office 19, OfficeKMSHostVL_KMS_Host edition Description: Office 19, VOLUME_KMS channel Activation ID: 70512334-47B4-44DB-A233-BE5EA33B914C License Status: Licensed
net stop sppsvc && net start sppsvc
and run the command for Office 2016:
slmgr /ato 98ebfe73-2084-4c97-932c-c0cd1643bea7
Office 2019:
slmgr.vbs /ato 70512334-47B4-44DB-A233-BE5EA33B914C
Office LTSC 2021:
slmgr.vbs /ato 47F3B983-7C53-4D45-ABC6-BCD91E2DD90A
Office 2021/2019/2016 Active Directory-Based Activation (ADBA)
If you are going to use ADBA for the automatic activation of Office 2021/2019/2016 on AD-joined computers, select Active Directory-Based Activation as a volume activation method in Volume Activation Tools. This activation method works for Windows Server 2022/2019/2016/2012R2 and Windows 11/10/8.1.
Then you have to enter the same KMS Host key (CSVLK) and specify its name (optional).
Now you only have to activate your KMS host key.
A warning that a new object will be created in the AD forest appears. Therefore, to properly install the KMS server for ADBA activation, you will need Enterprise Admin privileges.
In this case, additional entries will appear in the domain configuration branch CN=Activation Objects,CN=Microsoft SPP,CN=Services,CN=Configuration.
Close the VAT window, and press ENTER in the update tool console. The information about the installed KMS key can be obtained using SKU-ID (displayed in the final step of the KMS server installation):
slmgr.vbs /dlv 98ebfe73-2084-4c97-932c-c0cd1643bea7
– for Office 2016
slmgr.vbs /dlv 70512334-47B4-44DB-A233-BE5EA33B914C
– for Office 2019
slmgr.vbs /dlv 47F3B983-7C53-4D45-ABC6-BCD91E2DD90A
– for Office 2021
Your infrastructure is now ready to activate Office 2021/2019/2016 AD domain-joined clients.
Manually Activate MS Office 2021/2019/2016 with KMS License Server
You need to install a special corporate edition of Microsoft Office on the users’ computers (you can download it from the personal section of the Microsoft VLSC licensing site). In this version, a special KMS (GVLK) key is preinstalled (however, you can change the product key for a usual Office version installed with the retail, MAK, or OEM key).
- Starting with Office 2019, Microsoft uses Click-to-Run (C2R) technology instead of traditional MSI packages to install enterprise products. Unlike previous versions, you can’t download Office 2019 distros from your personal account on the Volume Licensing Service Center website. To deploy Office 2019 products (including Visio and Project) on a corporate network, you must use the Office Deployment Tool (ODT);
- To selectively install products from Office 2021/2019 on a computer, use the following instruction “How to install only selected app in Office 2019/2022 and Office 365?”;
- Please note that you can only install Office 2021/2019 only on Windows 10 or Windows 11 devices.
Those, if you have a valid SRV DNS record for the KMS server in the domain (you can find a KMS server in a domain with the command: nslookup -type=srv _vlmcs._tcp.woshub.com
), and you installed the corporate edition of MS Office (Volume License), a copy of Office should be activated automatically after installation on a computer in an AD domain.
To manually activate the Office on the client computer, run these commands one by one (in the elevated command prompt):
CD \Program Files\Microsoft Office\Office16
CD \Program Files (x86)\Microsoft Office\Office16
You can specify the KMS server manually:
cscript ospp.vbs /sethst:kms01.woshub.com
You can also specify the name or IP address of the KMS server through the following REG_SZ registry parameter KeyManagementServiceName in the HKLM\Software\Microsoft\OfficeSoftwareProtectionPlatform\ (you can deploy this registry key in the domain using GPO).
If the KMS server is running on a non-standard port (not on TCP/1688), you can change the target port on the client like this:
cscript ospp.vbs /setprt:1689
Or through the registry parameter KeyManagementServicePort in the HKLM\Software\Microsoft\OfficeSoftwareProtectionPlatform.
Activate your Office copy on the KMS server:
cscript ospp.vbs /act
The presence of the following lines indicates that your copy of Office 2016 has been successfully activated:
License Name: Office 16, Office16ProPlusVL_KMS_client edition License description: Office 16, VOLUME_KMSCLIENT channel <Product activation successful>
Use the following command to get information about the client activation history on the KMS server (you are searching for Event Viewer entries with the Event ID: 12288):
cscript ospp.vbs /dhistorykms
To allow performing Office KMS activation for the non-admin users, run the command:
cscript ospp.vbs /puserops
If you want to allow KMS activation only under administrator accounts, run:
cscript ospp.vbs /duserops
If MS Office 2021, 2019, or 2016 activation errors occur, more detailed information about the errors can be obtained using the command:
cscript ospp.vbs /ddescr:0xC004F042
where 0xC004F042 is your activation error code.
If you need to activate Office 2021/2019/2016 on a remote computer, use the following command:
cscript OSPP.VBS <Options> remotePCname [username] [password]
You can check the current Office 2019/2016/365 activation status using the command:
cscript ospp.vbs /dstatusall
LICENSE STATUS: ---OOB_GRACE--- ERROR CODE: 0x4004F00C ERROR DESCRIPTION: The Software Licensing Service reported that the application is running within the valid grace period.
The detailed information can be found in the KMS section of the event log (look for the Event ID 12290).
GVLK Keys for Microsoft Office 2021/2019/2016
All corporate Office 2021/2019/2016 versions are installed with Generic Volume License Keys (GVLK). These keys are public and accessible to everyone on Microsoft TechNet. Due to them, all Office product versions are automatically activated if there is a KMS server on the network. So, in most cases, it is not required to specify the GVLK key for Office.
A complete list of official public GVLK keys for MS Office 2021, 2019, and 2016 to activate your volume Office instances on a KMS server can be found here: https://technet.microsoft.com/en-us/library/dn385360(v=office.16).aspx.
Product name | GVLK key for KMS activation |
Office LTSC Professional Plus 2021 | FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH |
Office LTSC Standard 2021 | KDX7X-BNVR8-TXXGX-4Q7Y8-78VT3 |
Project Professional 2021 | FTNWT-C6WBT-8HMGF-K9PRX-QV9H8 |
Project Standard 2021 | J2JDC-NJCYY-9RGQ4-YXWMH-T3D4T |
Visio LTSC Professional 2021 | KNH8D-FGHT4-T8RK3-CTDYJ-K2HT4 |
Visio LTSC Standard 2021 | MJVNY-BYWPY-CWV6J-2RKRT-4M8QG |
Access LTSC 2021 | WM8YG-YNGDD-4JHDC-PG3F4-FC4T4 |
Excel LTSC 2021 | NWG3X-87C9K-TC7YY-BC2G7-G6RVC |
Outlook LTSC 2021 | C9FM6-3N72F-HFJXB-TM3V9-T86R9 |
PowerPoint LTSC 2021 | TY7XF-NFRBR-KJ44C-G83KF-GX27K |
Publisher LTSC 2021 | 2MW9D-N4BXM-9VBPG-Q7W6M-KFBGQ |
Skype for Business LTSC 2021 | HWCXN-K3WBT-WJBKY-R8BD9-XK29P |
Word LTSC 2021 | TN8H9-M34D3-Y64V9-TR72V-X79KV |
Office Professional Plus 2019 | NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP |
Office Standard 2019 | 6NWWJ-YQWMR-QKGCB-6TMB3-9D9HK |
Project Professional 2019 | B4NPR-3FKK7-T2MBV-FRQ4W-PKD2B |
Project Standard 2019 | C4F7P-NCP8C-6CQPT-MQHV9-JXD2M |
Visio Professional 2019 | 9BGNQ-K37YR-RQHF2-38RQ3-7VCBB |
Visio Standard 2019 | 7TQNQ-K3YQQ-3PFH7-CCPPM-X4VQ2 |
Access 2019 | 9N9PT-27V4Y-VJ2PD-YXFMF-YTFQT |
Excel 2019 | TMJWT-YYNMB-3BKTF-644FC-RVXBD |
Outlook 2019 | 7HD7K-N4PVK-BHBCQ-YWQRW-XW4VK |
PowerPoint 2019 | RRNCX-C64HY-W2MM7-MCH9G-TJHMQ |
Publisher 2019 | G2KWX-3NW6P-PY93R-JXK2T-C9Y9V |
Skype for Business 2019 | NCJ33-JHBBY-HTK98-MYCV8-HMKHJ |
Word 2019 | PBX3G-NWMT6-Q7XBW-PYJGG-WXD33 |
Office Professional Plus 2016 | XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99 |
Office Standard 2016 | JNRGM-WHDWX-FJJG3-K47QV-DRTFM |
Project Professional 2016 | YG9NW-3K39V-2T3HJ-93F3Q-G83KT |
Project Standard 2016 | GNFHQ-F6YQM-KQDGJ-327XX-KQBVC |
Visio Professional 2016 | PD3PC-RHNGV-FXJ29-8JK7D-RJRJK |
Visio Standard 2016 | 7WHWN-4T7MP-G96JF-G33KR-W8GF4 |
Access 2016 | GNH9Y-D2J4T-FJHGG-QRVH7-QPFDW |
Excel 2016 | 9C2PK-NWTVB-JMPW8-BFT28-7FTBF |
OneNote 2016 | DR92N-9HTF2-97XKM-XW2WJ-XW3J6 |
Outlook 2016 | R69KK-NTPKF-7M3Q4-QYBHW-6MT9B |
PowerPoint 2016 | J7MQP-HNJ4Y-WJ7YM-PFYGF-BY6C6 |
Publisher 2016 | F47MM-N3XJP-TQXJ9-BP99D-8K837 |
Skype for Business 2016 | 869NQ-FJ69K-466HW-QYCP2-DDBV6 |
Word 2016 | WXY84-JN2Q9-RBCCQ-3Q3J3-3PFJ6 |
If necessary, you can change the Office product key to a GVLK (KMS) as follows:
cscript ospp.vbs /inpkey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
KMS Activation Error “vmw.exe has stopped working” on Windows Server 2019/2016
If you are trying to install a KMS server for Office 2021/2019/2016 on Windows Server 2019/2016, keep in mind that it has a number of problems with the launch of the Volume Activated Services Tool. When you try to activate an Office KMS server through the Volume Activated Services GUI, you can receive an error:
Vmw.exe has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.
I’ve met somewhere before that VAMT currently supports only operating systems up to Windows 8.1. And when installing the KMS server role on Windows Server 2022/2019 or Windows 10, the executable file Vmw.exe crashes.
As a workaround, you need to activate the KMS server from the command prompt after installing volumelicensepack. Install the KMS Host key (which you received with VLSC) with the command:
slmgr -ipk <Office_2016_2019_2022_KMS_Host_Key>
Then activate the KMS server itself (you need direct Internet access):
slmgr.vbs /ato 98ebfe73-2084-4c97-932c-c0cd1643bea7
For Office 2019, use the SKU ID – 70512334-47B4-44DB-A233-BE5EA33B914C
For Office 2021 – 47F3B983-7C53-4D45-ABC6-BCD91E2DD90A
Now your Office KMS server based on Windows Server 2019/2016 is activated and can be used to activate clients.
21 comments
Thanks Donald; it works perfectly.
I think the link was deleted. It was a very good website indeed.
Do I have to have Office 2016 installed on the computer that is running the KMS? When I run the cscript, it says everything is fine, and it opens the Volume Licensing Tool, but the tool doesn’t give me the option to choose a product, and although it accepts the Office key, I don’t see any change in the products being managed. This is a 2012 r2 server that is working fine for activating Windows 7 work stations. I have been told that I can be running the KMS activation for Office on the same server as for Windows, but is that not correct? It’s a file server and secondary domain controller, so naturally I don’t have Office installed.
You dont need to install Office 2016 on KMS server. The single KMS server may well activate both Windows and Office clients
Thanks for the great article, my question what if i need to activate just Visio and Project without all office apps shall i will use the same procedure or it will be different?
Thank a lot Ad
If i have an environment of 100 workstation that I reimage every 6 months and i only have 120 VL of office 2016.
When I activate the 100 workstation, I will use up the 100 licenses but what if i reimage the computers on the 6 months. What will happen? will only 20 computers be activated or all 100 computers of office 2016 be activated?
Thanks
In that case, if you are using KMS server to activate Office , all 100 computers will be activated
Admin. thanks for the reply.
Assume I setup KMS server correctly, Is the KMS smart enough to count that I just have 100 computers with office that I reformat/activate all the time so its still 100 licenses compare to a kms counter that just keeps increasing?
if so, then this article should be a great start for me, correct?
thanks in advance.
KMS servers don’t check the number of licenses you have purchased. You could have 100 licenses and can activate 1000 computers against it. It’ll activate them all.
For some reason, the “Volume Activation Tools” window never appears. Only a little window suggesting to use slmgr.vbs …
Thanks for great article.
Now if organization has Office365 , wants to deploy office2016 using KMS host and client running server 2012 r2 – rds/ citrix environment how activation & licensing works..
Citrix for publishing office 2016 thru Xen App 7.x ..
Hi Great Article.
Quick question which you may be able to answer for me. We have an environment with 1000 computers. We have purchased 800 licenses initially of Office Standard 2016 and using KMS with VAMT 3.1 they activated fine.
We then went and got a further 180 licenses, but we got a different KMS and MAK key for the new 180.
Do I need to run slmgr.vbs with new KMS key and if so will this overwrite my original KMS key for the 800
Your old KMS server can activate unlimited number of Office 2016 copies.
Or you can activate new client using MAK key (not a good solution if you have activated KMS server)
Hi,
thank you. I have a Windows 2016 Server. Was working good.
Best regards.
Aleksej
Hi thanks for this article.
I need to migrate from Office 2010 to Office 2016 on 2 X 2008R2 RDS Server with 20 users each.
Do I need to install first Office Pro Plus 2016 on both servers and, when it’s done, install the KMS host server ?
Or Do I have to setup the KMS host server first and then install Office 2016 ?
Thank you
For Windows Server 2012 R2 Core, your command line instructions at the end of the article work perfectly.
End of 2020, just wanted to check in and let everybody know this works beautifully on a 2016 or 2019 server and I verified it works for activating clients with Office 2016 or Office 2019. Thank you so much for this awesome tutorial.
Great resource.. thanks for putting so much useful informaiton together.. demystifying kms..
Hi !
Thanks for this great article.
However, when you have several GVLK keys for the same Office 2016/2019 product and that you encounter the issue to add new keys from the GUI, how can I specify multiple GVLK keys for my KMS server using the slmgr utility from command prompt ?
Thanks in advance.
Hi, this is amazing.
So this is the way sellers on ebay and other websites are selling Office keys?
How to get access to Microsoft Volume Licensing? I have a company, can I simple sign up?
Thanks