• Star ()
  • Fork ()

Activate Windows and Office Using KMS Server

Microsoft Windows and Office KMS Setup

Table of Contents

  • 1. Select Appropriate KMS Key
    • 1.1. Windows Server 2008-2022
    • 1.2. Windows 11
    • 1.3. Windows 10
    • 1.4. Windows 8
    • 1.5. Windows 7
    • 1.6. Windows Vista
    • 1.7. Office 2021
    • 1.8. Office 2019
    • 1.9. Office 2016
    • 1.10. Office 2013
    • 1.11. Office 2010
  • 2. Windows KMS Setup
    • 2.1. Install KMS Key
  • Remove Product Key
    • Configure KMS Client
    • Activate
  • 3. Office KMS Setup
    • 3.1. Install KMS Key
    • 3.2. Configure KMS Client
    • 3.3. Activate
  • 4. Reference

Author Jerod Gawne [jerodgawne@gmail.com]
Date February 22, 2018 Revision 2.1.0, March 26, 2024
Tags windows, kms, office
Links GitHubGist

1. Select Appropriate KMS Key

1.1. Windows Server 2008-2022

1.2. Windows 11

1.3. Windows 10

1.4. Windows 8

1.5. Windows 7

1.6. Windows Vista

1.7. Office 2021

1.8. Office 2019

1.9. Office 2016

1.10. Office 2013

1.11. Office 2010

2. Windows KMS Setup

2.1. Install KMS Key

Open an elevated command prompt (as administrator)

Remove Product Key

e.g. Windows 10 Enterprise

slmgr /upk # Remove product key from registry slmgr /cpky

slmgr.vbs /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43

Configure KMS Client

Open an elevated command prompt (as administrator)

slmgr.vbs /skms host>:port>

3. Office KMS Setup

3.1. Install KMS Key

cd "C:\Program Files\Microsoft Office\Office16"
cscript ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99

3.2. Configure KMS Client

cscript ospp.vbs /sethst:kms01.yourdomain.com
cscript ospp.vbs /setprt:1689  // Optionally set KMS Server Port

3.3. Activate

cscript ospp.vbs /act  // Activate
cscript ospp.vbs /dstatusall  // Optionally Check Current Status