# Microsoft Key Management Key Management Server instructions. # 0 - GVLK/KMS Keys ### Keys for Activating a Variety of Microsoft Products GVLK stands for Generic Volume License Key(s). There is another acronym LTSC which stands for Long Term Servicing Channel. I have seen the term GVLK used for both Windows and Office365; however, LTSC I have seen used for Office365 products activated using GVLK on a KMS server. KMS is a Key Management Server which aids in the activation of Microsoft products. KMS servers typically run on Windows Server OSs and follow strict licensing requirements; however, there are some folks who have found a way around those requirements using Linux OSs. Below are the keys that can be using to activate Microsoft products. ### **Windows** #### **Windows Server Editions** ##### **Windows Server 2025**
OS Edition GVLK Keys
Windows Server 2025 Datacenter D764K-2NDRG-47T6Q-P8T8W-YP6DF
Windows Server 2025 Azure Edition XGN3F-F394H-FD2MY-PP6FD-8MCRC
Windows Server 2025 Standard TVRH6-WHNXV-R9WG3-9XRFY-MY832
##### **Windows Server 2022**
OS Edition GVLK Keys
Windows Server 2022 Datacenter WX4NM-KYWYW-QJJR4-XV3QB-6VM33
Windows Server 2022 Datacenter Azure Edition NTBV8-9K7Q8-V27C6-M2BTV-KHMXV
Windows Server 2022 Standard VDYBN-27WPP-V4HQT-9VMD4-VMK7H
##### **Windows Server 2019**
OS Edition GVLK Keys
Windows Server 2019 Datacenter WMDGN-G9PQG-XVVXX-R3X43-63DFG
Windows Server 2019 Standard N69G4-B89J2-4G8F4-WWYCC-J464C
Windows Server 2019 Essentials WVDHN-86M7X-466P6-VHXV7-YY726
##### **Windows Server 2016**
OS Edition GVLK Keys
Windows Server 2016 Datacenter CB7KF-BWN84-R7R2Y-793K2-8XDDG
Windows Server 2016 Standard WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY
Windows Server 2016 Essentials JCKRF-N37P4-C2D82-9YXRT-4M63B
##### **Windows Server 2012**
OS Edition GVLK Keys
Windows Server 2012 R2 Datacenter W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9
Windows Server 2012 R2 Standard D2N9P-3P6X9-2R39C-7RTCD-MDVJX
Windows Server 2012 Datacenter 48HP8-DN98B-MYWDG-T2DCC-8W83P
Windows Server 2012 Standard XC9B7-NBPP2-83J2H-RHMBY-92BT4
Windows Server 2012 BN3D2-R7TKB-3YPBD-8DRP2-27GG4
##### **Windows Server 2008**
OS Edition GVLK Keys
Windows Server 2008 R2 Datacenter 74YFP-3QFB3-KQT8W-PMXWJ-7M648
Windows Server 2008 R2 Enterprise 489J6-VHDMP-X63PK-3K798-CPX3Y
Windows Server 2008 R2 Standard YC6KT-GKW9T-YTKYR-T4X34-R7VHC
Windows Server 2008 Datacenter 7M67G-PC374-GR742-YH8V4-TCBY3
Windows Server 2008 Datacenter without Hyper-V 22XQ2-VRXRG-P8D42-K34TD-G3QQC
Windows Server 2008 Enterprise YQGMW-MPWTJ-34KDK-48M3W-X4Q6V
Windows Server 2008 Enterprise without Hyper-V 39BXF-X8Q23-P2WWT-38T2F-G3FPG
Windows Server 2008 Standard TM24T-X9RMF-VWXK6-X8JC9-BFGM2
Windows Server 2008 Standard without Hyper-V W7VD6-7JFBR-RX26B-YKQ3Y-6FFFJ
#### **Windows Desktop Editions** ##### **Windows 10/11**
OS Edition GVLK Keys
Windows 10/11 Pro W269N-WFGWX-YVC9B-4J6C9-T83GX
Windows 10/11 Pro for Workstations NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J
Windows 10/11 Pro Education 6TP4R-GNPTD-KYYHQ-7B7DP-J447Y
Windows 10/11 Education NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Windows 10/11 Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43W
##### **Windows 10 LTSC (Long Term Support Channel)**
OS Edition GVLK Keys
Windows 10 Enterprise LTSC 2019/2021 M7XTQ-FN8P6-TTKYV-9D4CC-J462D
##### **Windows 10 LTSB (Long Term Service Branch)**
OS Edition GVLK Keys
Windows 10 Enterprise LTSB 2016 DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ
Windows 10 Enterprise LTSB 2015 WNMTR-4C88C-JK8YV-HQ7T2-76DF9
##### **Windows 8**
OS Edition GVLK Keys
Windows 8.1 Pro GCRJD-8NW9H-F2CDX-CCM8D-9D6T9
Windows 8.1 Enterprise MHF9N-XY6XB-WVXMC-BTDCT-MKKG7
Windows 8 Pro NG4HW-VH26C-733KW-K6F98-J8CK4
Windows 8 Enterprise 32JNW-9KQ84-P47T8-D8GGY-CWCK7
##### **Windows 7**
OS Edition GVLK Keys
Windows 7 Professional FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
Windows 7 Enterprise 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
### Microsoft Office/Office365 LTSC ##### **Office 2024**
Product GVLK Keys
Office LTSC Professional Plus 2024 XJ2XN-FW8RK-P4HMP-DKDBV-GCVGB
Office LTSC Standard 2024 V28N4-JG22K-W66P8-VTMGK-H6HGR
Project Professional 2024 FQQ23-N4YCY-73HQ3-FM9WC-76HF4
Project Standard 2024 PD3TT-NTHQQ-VC7CY-MFXK3-G87F8
Visio LTSC Professional 2024 B7TN8-FJ8V3-7QYCP-HQPMV-YY89G
Visio LTSC Standard 2024 JMMVY-XFNQC-KK4HK-9H7R3-WQQTV
Access LTSC 2024 82FTR-NCHR7-W3944-MGRHM-JMCWD
Excel LTSC 2024 F4DYN-89BP2-WQTWJ-GR8YC-CKGJG
Outlook LTSC 2024 D2F8D-N3Q3B-J28PV-X27HD-RJWB9
PowerPoint LTSC 2024 CW94N-K6GJH-9CTXY-MG2VC-FYCWP
Skype for Business LTSC 2024 4NKHF-9HBQF-Q3B6C-7YV34-F64P3
Word LTSC 2024 MQ84N-7VYDM-FXV7C-6K7CC-VFW9J
### **Office 2021**[](https://py-kms.readthedocs.io/en/latest/Keys.html#office-2021)
**Product** **GVLK**
Office Access LTSC 2021 WM8YG-YNGDD-4JHDC-PG3F4-FC4T4
Office Excel LTSC 2021 NWG3X-87C9K-TC7YY-BC2G7-G6RVC
Office Outlook LTSC 2021 C9FM6-3N72F-HFJXB-TM3V9-T86R9
Office Powerpoint LTSC 2021 TY7XF-NFRBR-KJ44C-G83KF-GX27K
Office LTSC Professional Plus 2021 FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH
Office Project Pro 2021 FTNWT-C6WBT-8HMGF-K9PRX-QV9H8
Office Project Standard 2021 J2JDC-NJCYY-9RGQ4-YXWMH-T3D4T
Office Publisher LTSC 2021 2MW9D-N4BXM-9VBPG-Q7W6M-KFBGQ
Office Skype for Business LTSC 2021 HWCXN-K3WBT-WJBKY-R8BD9-XK29P
Office LTSC Standard 2021 KDX7X-BNVR8-TXXGX-4Q7Y8-78VT3
Office Visio LTSC Pro 2021 KNH8D-FGHT4-T8RK3-CTDYJ-K2HT4
Office Visio LTSC Standard 2021 MJVNY-BYWPY-CWV6J-2RKRT-4M8QG
Office Word LTSC 2021 TN8H9-M34D3-Y64V9-TR72V-X79KV
### **Office 2019**[](https://py-kms.readthedocs.io/en/latest/Keys.html#office-2019)
**Product** **GVLK**
Professional Plus 2019 \[C2R\] VQ9DP-NVHPH-T9HJC-J9PDT-KTQRG
Professional Plus 2019 NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
Standard 2019 6NWWJ-YQWMR-QKGCB-6TMB3-9D9HK
Project Professional 2019 \[C2R\] XM2V9-DN9HH-QB449-XDGKC-W2RMW
Project Professional 2019 B4NPR-3FKK7-T2MBV-FRQ4W-PKD2B
Project Standard 2019 C4F7P-NCP8C-6CQPT-MQHV9-JXD2M
Visio Professional 2019 \[C2R\] N2CG9-YD3YK-936X4-3WR82-Q3X4H
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 2016**[](https://py-kms.readthedocs.io/en/latest/Keys.html#office-2016)
**Product** **GVLK**
Professional Plus 2016 XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99
Standard 2016 JNRGM-WHDWX-FJJG3-K47QV-DRTFM
Project Professional 2016 YG9NW-3K39V-2T3HJ-93F3Q-G83KT
Project Professional 2016 \[C2R\] WGT24-HCNMF-FQ7XH-6M8K7-DRTW9
Project Standard 2016 GNFHQ-F6YQM-KQDGJ-327XX-KQBVC
Project Standard 2016 \[C2R\] D8NRQ-JTYM3-7J2DX-646CT-6836M
Visio Professional 2016 PD3PC-RHNGV-FXJ29-8JK7D-RJRJK
Visio Professional 2016 \[C2R\] 69WXN-MBYV6-22PQG-3WGHK-RM6XC
Visio Standard 2016 7WHWN-4T7MP-G96JF-G33KR-W8GF4
Visio Standard 2016 \[C2R\] NY48V-PPYYH-3F4PX-XJRKJ-W4423
Access 2016 GNH9Y-D2J4T-FJHGG-QRVH7-QPFDW
Excel 2016 9C2PK-NWTVB-JMPW8-BFT28-7FTBF
Mondo 2016 HFTND-W9MK4-8B7MJ-B6C4G-XQBR2
Mondo Retail 2016 DMTCJ-KNRKX-26982-JYCKT-P7KB6
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
### **Office 2013**[](https://py-kms.readthedocs.io/en/latest/Keys.html#office-2013)
**Product** **GVLK**
Professional Plus 2013 \[Preview\] PGD67-JN23K-JGVWV-KTHP4-GXR9G
Professional Plus 2013 YC7DK-G2NP3-2QQC3-J6H88-GVGXT
Standard 2013 KBKQT-2NMXY-JJWGP-M62JB-92CD4
Project Professional 2013 \[Preview\] NFKVM-DVG7F-TYWYR-3RPHY-F872K
Project Professional 2013 FN8TT-7WMH6-2D4X9-M337T-2342K
Project Standard 2013 \[Preview\] N89QF-GGB8J-BKD28-C4V28-W4XTK
Project Standard 2013 6NTH3-CW976-3G3Y2-JK3TX-8QHTT
Visio Professional 2013 \[Preview\] B3C7Q-D6NH2-2VRFW-HHWDG-FVQB6
Visio Professional 2013 C2FG9-N6J68-H8BTJ-BW3QX-RM3B3
Visio Standard 2013 \[Preview\] 9MKNF-J9XQ6-JV4XB-FJQPY-43F43
Visio Standard 2013 J484Y-4NKBF-W2HMG-DBMJC-PGWR7
Access 2013 \[Preview\] DJBH8-RGN7Q-836KD-DMP3M-DM9MF
Access 2013 NG2JY-H4JBT-HQXYP-78QH9-4JM2D
Excel 2013 \[Preview\] Q3BNP-3WXDT-GG8HF-24KMW-HMDBK
Excel 2013 VGPNG-Y7HQW-9RHP7-TKPV3-BG7GB
OneNote 2013 \[Preview\] VYNYX-8GPBC-7FQMD-D6B7B-7MDFD
OneNote 2013 TGN6P-8MMBC-37P2F-XHXXK-P34VW
Outlook 2013 \[Preview\] X2KNB-FRRG2-WXDPH-739DM-DM9RH
Outlook 2013 QPN8Q-BJBTJ-334K3-93TGY-2PMBT
PowerPoint 2013 \[Preview\] B8CT8-BTNFQ-XQXBK-BFWV8-HMDFQ
PowerPoint 2013 4NT99-8RJFH-Q2VDH-KYG2C-4RD4F
Publisher 2013 \[Preview\] NB67P-J8XP4-XDK9B-V73VH-M4CKR
Publisher 2013 PN2WF-29XG2-T9HJ7-JQPJR-FCXK4
InfoPath 2013 (Preview) 7KPJJ-N8TT7-CK3KR-QTV98-YPVXQ
InfoPath 2013 DKT8B-N7VXH-D963P-Q4PHY-F8894
Lync 2013 \[Preview\] XNVD3-RYC7T-7R6BT-WX6CF-8BYH7
Lync 2013 2MG3G-3BNTT-3MFW9-KDQW3-TCK7R
Word 2013 \[Preview\] JBGD4-3JNG7-JWWGV-CR6TP-DC62Q
Word 2013 6Q7VD-NX8JD-WJ2VH-88V73-4GBJ7
Mondo 2013 \[Preview\] GCGCN-6FJRM-TR9Q3-BGMWJ-78KQV
Mondo 2013 42QTK-RN8M7-J3C4G-BBGYM-88CYV
Mondo 2013 Retail `?????-?????-?????-?????-?????`
SharePoint Workspace (Groove) 2013 \[Preview\] WVCGG-NK4FG-7XKXM-BD4WF-3C624
SharePoint Workspace (Groove) 2013 H7R7V-WPNXQ-WCYYC-76BGV-VT7GH
SharePoint Designer (Frontpage) 2013 Retail \[Preview\] ?????-?????-?????-?????-?????
SharePoint Designer (Frontpage) 2013 Retail GYJRG-NMYMF-VGBM4-T3QD4-842DW
### **Office 2010**
**Product** **GVLK**
Professional Plus 2010 VYBBJ-TRJPB-QFQRF-QFT4D-H3GVB
Standard 2010 V7QKV-4XVVR-XYV4D-F7DFM-8R6BM
Project Professional 2010 YGX6F-PGV49-PGW3J-9BTGG-VHKC6
Project Standard 2010 4HP3K-88W3F-W2K3D-6677X-F9PGB
Visio Professional 2010 7MCW8-VRQVK-G677T-PDJCM-Q8TCP
Visio Standard 2010 767HD-QGMWX-8QTDB-9G3R2-KHFGJ
Visio Premium 2010 D9DWC-HPYVV-JGF4P-BTWQB-WX8BJ
Access 2010 V7Y44-9T38C-R2VJK-666HK-T7DDX
Excel 2010 H62QG-HXVKF-PP4HP-66KMR-CW9BM
OneNote 2010 Q4Y4M-RHWJM-PY37F-MTKWH-D3XHX
Outlook 2010 7YDC2-CWM8M-RRTJC-8MDVC-X3DWQ
PowerPoint 2010 RC8FX-88JRY-3PF7C-X8P67-P4VTT
Publisher 2010 BFK7F-9MYHM-V68C7-DRQ66-83YTP
InfoPath 2010 K96W8-67RPQ-62T9Y-J8FQJ-BT37T
SharePoint Workspace (Groove) 2010 QYYW6-QP4CB-MBV6G-HYMCJ-4T3J4
Word 2010 HVHB3-C6FV7-KQX9W-YQG79-CRY7T
Small Business Basics 2010 D6QFG-VBYP2-XQHM7-J97RH-VVRCK
Starter 2010 Retail VXHHB-W7HBD-7M342-RJ7P8-CHBD6
SharePoint Designer (Frontpage) 2010 Retail H48K6-FB4Y6-P83GH-9J7XG-HDKKX
Office Mondo 1 2010 YBJTT-JG6MD-V9Q7P-DBKXJ-38W9R
Office Mondo 2 2010 7TC2V-WXF6P-TD7RT-BQRXR-B8K32
# 1 - Windows Activation ### **Local or Remote KMS Activation** To Activate with KMS on local domain, if activating a product that has not done so automatically, go to the activation page in the System manager and click activate or change key. Find the key for your specific product on this [page](https://wiki.joshuameunier.com/books/microsoft-key-management/page/0-gvlkkms-keys#bkmrk-windows). If unable to activate, follow the instructions as follows: \*Anything after # symbol, do not type. These are notations. \*\*This guide assumes you already have a KMS server setup; otherwise, use a remote one as shown in the (e.x.) brackets. #### Windows Servers ##### Using Current Version/Edition Run "dism /online /get-currentedition" to see which edition you are running. If it is running the edition you want, run the following commands to change and activate your chosen edition:
slmgr /skms {kmsserver:port}\#Use this command with the correct server and port number (if port number is different) if KMS is on a remote server. 1688 is the default KMS port and is not needed if it is not different: do not type :port if 1688. (e.x. kms1.jjmtech.uk, kms8.msguides.com)
slmgr /ipk\#This installs the product key.
slmgr /ito\#This command activates the key above for edition selected.
This should activate your OS with KMS. ##### Upgrading to a Different Version/Edition Run "dism /online /get-currentedition" to see which edition you are running. If it is not running the edition you want, run the following commands to change and activate your chosen edition:
dism /online /get-targeteditions\#This command is to see which editions you are eligible to run. You will not see lower editions and cannot downgrade from a high edition to a lower edition. Please ensure you choose the edition you want. On Server, you can either have Standard or Data Center editions.
dism /online /set-edition:{edition} /productkey:{product key} /accepteula\#product key from below. Either set edition as ServerStandard or ServerDatacenter.
RebootNot necessary unless an error occurs. Reboot installs the necessary component upgrades before activation.
slmgr /ipk {product key}\#same as product key above
slmgr /ato\#This command activates the key above for edition selected.
#### Windows Workstations The steps for activating workstations are similar to the servers section above; however, there are a few changes and additions. ##### Using Current Version/Edition Run "dism /online /get-currentedition" to see which edition you are running. If it is running the edition you want, run the following commands to change and activate your chosen edition:
slmgr /skms {kmsserver:port}\#Use this command with the correct server and port number (if port number is different) if KMS is on a remote server. 1688 is the default KMS port and is not needed if it is not different: do not type :port if 1688. (e.x. kms1.jjmtech.uk, kms8.msguides.com)
slmgr /ipk {product key}\#This installs the product key.
slmgr /ato\#This command activates the key above for edition selected.
If the activation fails, try one more time. If it fails a second time. Run the following commands instead:
Changepk.exe /ProductKey {product key}\#This command manually changes the product key on the system if the "slmgr /ipk" command fails.
slmgr /skms {kmsserver:port}
slmgr /ato
##### Upgrading to a Different Version/Edition Run "dism /online /get-currentedition" to see which edition you are running. If it is running the edition you want, run the following commands to change and activate your chosen edition:
dism /online /get-targeteditions\#This command is to see which editions you are eligible to run. You will not see lower editions and cannot downgrade from a high edition to a lower edition. Please ensure you choose the edition you want. On workstations, there are many editions to choose from.
dism /online /set-edition:{edition} /productkey:{product key} /accepteula\#Set this to the edition that you want such as Pro or Enterprise. See results for above command to get the edition you will input for /set-edition.
slmgr /skms {kmsserver:port}\#Use this command with the correct server and port number (if port number is different) if KMS is on a remote server. 1688 is the default KMS port and is not needed if it is not different: do not type :port if 1688. (e.x. kms1.jjmtech.uk, kms8.msguides.com)
slmgr /ipk {product key}\#This installs the product key.
slmgr /ato\#This command activates the key above for edition selected.
If the activation fails, try one more time. If it fails a second time. Run the following commands instead:
Changepk.exe /ProductKey {product key}\#This command manually changes the product key on the system if the "slmgr /ipk" command fails.
slmgr /skms {kmsserver:port}
slmgr /ato
# 2 - Microsoft Office/Office365 Activation ### **Local or Remote KMS Activation** This page assumes you have already install Microsoft Office. I will be going over the activation of the Microsoft Office 365 products 2016, 2019, and 2021 by activating Office 2021 which have the same steps. To activate with KMS on local domain, if activating a product that has not done so automatically, load Word or another Microsoft product then head to the Account and Change Product Key. Find the key for your specific product on this [page](https://wiki.joshuameunier.com/books/microsoft-key-management/page/0-gvlkkms-keys#bkmrk-microsoft-office%2Foff). If unable to activate, follow the instructions as follows: For me, I'm using a domain and have my DNS entries setup. Which means when I install Office using the deployment tool in addition with my configuration file, it will activate automatically. Moreover, this guide assumes that you have DNS setup correctly. You can verify this by typing in the following command:
nslookup -type=srv \_vlmcs.tcp\#This will show the results of my KMS server. If there is an error, your DNS is not setup properly. This is beyond the scope of this document.
I personally have a KMS server that is hosted locally and remotely on separate servers. One is for public activation while the other is for personal activation. This assumes that your legit reason if for lab testing. The server for public testing is kms1.jjmtech.uk. The server is not located in the UK, it is in the U.S. and was the cheapest domain I could afford at the time for testing services. \*Anything after # symbol, do not type. These are notations. \*\*This guide assumes you already have a KMS server setup; otherwise, use a remote one as shown in the (e.x.) brackets. ### Office 2021 Activation Assuming you have read and verified the steps above, we can move on to the next steps. Activating Office 2021 LTSC. LTSC is the Long Term Support Channel of Office for businesses that don't need the next most recent version of Office. It is activated using the Generic Volume License Keys provided by Microsoft. To active Office 2021, please following the steps below running Command Prompt as Administrator by right clicking Command Prompt and selection Run as Administrator. Type the following commands:
CD "C:\\Program Files\\Microsoft Office\\Office16"\#Use this first. If it says directory doesn't exist then use next command. If it changed into this directory, skip next command.
CD "C:\\Program Files (x86)\\Microsoft Office\\Office16"\#Use this only if the above command didn't find a directory.
cscript ospp.vbs /sethst:kms1.jjmtech.uk\#This command manually sets the KMS host.
cscript ospp.vbs /setprt:1688\#This command manually sets the port number. Not needed if the port number hasn't changed from the default 1688.
cscript ospp.vbs /act\#This command activates the install product key to Office.
cscript ospp.vbs /dstatus\#This command show the license status for all installed licenses.
If the activation fails, KMS works, and DNS is correct, enter the following command and enter the last 2 commands to reactive and check the status:
cscript ospp.vbs /inpkey:{product key}By using this command paired with correct key, you will convert the retail copy of Office to LTSC. Re-run the /act and /dstatusall commands to activate and check activation status.
### Office De-Activation For those of us testing in a lab environment, it may be useful to deactivate, uninstall, reinstall, and reactivate Microsoft Office. For that, we use the following commands to deactivate and upon reinstallation, refer to the above sections for reactivation.
CD "C:\\Program Files\\Microsoft Office\\Office16"\#Use this first. If it says directory doesn't exist then use next command. If it changed into this directory, skip next command.
CD "C:\\Program Files (x86)\\Microsoft Office\\Office16"\#Use this only if the above command didn't find a directory.
cscript ospp.vbs /dstatus\#This command show the license status for all installed licenses.
cscript ospp.vbs /unpkey:{key}\#This command removes the key from the system. Use this for all products intended to be reinstalled.
cscript ospp.vbs /rearm\#This command finalizes key removal and activation.
cscript ospp.vbs /ckms-domain\#This command clears the KMS from cache.