Skip to content

Instantly share code, notes, and snippets.

@bran921007
Forked from ppeuchin/office_365_activation.md
Created March 29, 2022 12:29
Show Gist options
  • Save bran921007/5d229d8f5b9981a20c72a821f99400b7 to your computer and use it in GitHub Desktop.
Save bran921007/5d229d8f5b9981a20c72a821f99400b7 to your computer and use it in GitHub Desktop.

MS Office activation

Steps

  1. Download and install Office 365

  2. Remove current trial license

  3. Open command prompt as admin

  4. Navigate to the Office folder

    cd /d %ProgramFiles%\Microsoft Office\Office16
    cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
  5. Convert your Office license to volume one if possible

    for /f %x in ('dir /b ..\root\Licenses16\proplusvl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%x"
  6. Use KMS client key to activate your Office

    cscript ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99
    cscript ospp.vbs /unpkey:BTDRB >nul
    cscript ospp.vbs /unpkey:KHGM9 >nul
    cscript ospp.vbs /unpkey:CPQVG >nul
    cscript ospp.vbs /sethst:kms8.msguides.com
    cscript ospp.vbs /setprt:1688
    cscript ospp.vbs /act

Result

Here is all the text you will get in the command prompt window.

C:\Windows\system32>cd /d %ProgramFiles%\Microsoft Office\Office16
 C:\Program Files\Microsoft Office\Office16>cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
 The system cannot find the path specified.
 C:\Program Files\Microsoft Office\Office16>for /f %x in ('dir /b ..\root\Licenses16\proplusvl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%x"
 C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /inslic:"..\root\Licenses16\ProPlusVL_KMS_Client-ppd.xrm-ms"
 Microsoft (R) Windows Script Host Version 5.812
 Copyright (C) Microsoft Corporation. All rights reserved.
 ---Processing--------------------------
 Installing Office license: ..\root\licenses16\proplusvl_kms_client-ppd.xrm-ms
 Office license installed successfully.
 ---Exiting-----------------------------
 C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /inslic:"..\root\Licenses16\ProPlusVL_KMS_Client-ul-oob.xrm-ms"
 Microsoft (R) Windows Script Host Version 5.812
 Copyright (C) Microsoft Corporation. All rights reserved.
 ---Processing--------------------------
 Installing Office license: ..\root\licenses16\proplusvl_kms_client-ul-oob.xrm-ms
 Office license installed successfully.
 ---Exiting-----------------------------
 C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /inslic:"..\root\Licenses16\ProPlusVL_KMS_Client-ul.xrm-ms"
 Microsoft (R) Windows Script Host Version 5.812
 Copyright (C) Microsoft Corporation. All rights reserved.
 ---Processing--------------------------
 Installing Office license: ..\root\licenses16\proplusvl_kms_client-ul.xrm-ms
 Office license installed successfully.
 ---Exiting-----------------------------
 C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99
 Microsoft (R) Windows Script Host Version 5.812
 Copyright (C) Microsoft Corporation. All rights reserved.
 ---Processing--------------------------

 ---Exiting-----------------------------
 C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /unpkey:BTDRB >nul
 C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /unpkey:KHGM9 >nul
 C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /unpkey:CPQVG >nul
 C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /sethst:kms8.msguides.com
 Microsoft (R) Windows Script Host Version 5.812
 Copyright (C) Microsoft Corporation. All rights reserved.
 ---Processing--------------------------
 Successfully applied setting.
 ---Exiting-----------------------------
 C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /setprt:1688
 Microsoft (R) Windows Script Host Version 5.812
 Copyright (C) Microsoft Corporation. All rights reserved.
 ---Processing--------------------------
 Successfully applied setting.
 ---Exiting-----------------------------
 C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /act
 Microsoft (R) Windows Script Host Version 5.812
 Copyright (C) Microsoft Corporation. All rights reserved.
 ---Processing--------------------------
 Installed product key detected - attempting to activate the following product:
 SKU ID: d450596f-894d-49e0-966a-fd39ed4c4c64
 LICENSE NAME: Office 16, Office16ProPlusVL_KMS_Client edition
 LICENSE DESCRIPTION: Office 16, VOLUME_KMSCLIENT channel
 Last 5 characters of installed product key: WFG99


 ---Exiting-----------------------------
 C:\Program Files\Microsoft Office\Office16>
@Nooblyqw
Copy link

now guy is asking for geniun licence

@freya491
Copy link

freya491 commented May 3, 2025

I’ve always struggled to find genuine Microsoft software at reasonable prices—until I found https://softwarecaster.com. They offer fully authentic Office and Windows licenses with instant delivery. Use promo code WIN40 at checkout to enjoy a generous 40% discount. Highly recommended!

@soniyaakter1854
Copy link

I often get asked where to buy legit software without breaking the bank. After testing several vendors, https://softwarecaster.com/ stands out. Their prices are already low, but using WIN40 gives you an additional 40% off. I purchased Office 2019 and activated it without a hitch. If you're serious about quality and saving money, this is a hidden gem.

@lucas2677
Copy link

Been burned before by fake license sites, so I was skeptical at first. But https://softwarecaster.com/ proved me wrong. They’re offering 40% off with code WIN40, and the key I received worked instantly. Their support even helped me activate it. Super reliable!

@jackaus47
Copy link

Tried SoftwareCaster based on a friend's recommendation, and now I’m recommending it to everyone. Got Office 2019 from https://softwarecaster.com/ with the WIN40 code – saved a lot and got a real license.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment