Skip to main content

Manually Activate Microsoft Office on KMS Server

Run these commands in Command Prompt as administrator:

  • For Office 2016, 2019, 2022:
    cd "c:\Program Files\Microsoft Office\Office16"

    If you are using the 32-bit MS Office version installed on 64-bit Windows, you need to use this command:

    CD “C:\Program Files (x86)\Microsoft Office\Office16”
  • Manually specify the KMS server name:
    cscript ospp.vbs /sethst:<PI-KMS-DNS-NAME>

    (optionally) You can set the KMS server port number:

    cscript ospp.vbs /setprt:1688
  • Activate your Office copy on the KMS server:
    cscript ospp.vbs /act
  • Check the Office activation status:
    cscript ospp.vbs /dstatusall