Renew Microsoft Office/Windows KMS license for FREE manually

By default, KMS license is valid for only 180 days and it will be renewed every 7 days as from the date of activation. However, in some cases, this process can be stuck. The following are some reasons for this problem.

  • Your PC is not connected to the internet or the connection is unstable when the license renewal process is called.
  • You are using a third-party firewall so the connection to KMS server is denied.
  • You are using different versions of Office on your PC. Retail and Volume version on the same PC?

Workarounds

  • Make sure your PC is always connected and your internet connection is stable.
  • If you are using another firewall, please open port 1688.
  • Please do not use Office retail and volume on the same Windows.

How to renew KMS license

1. Renew Microsoft Office license

Step 1.1: Open command prompt as administrator.

Step 1.2: Copy and run the command below. Note: “Office16” is code name of Office 2016. If you are using Office 2013/2010, just replace it with “Office15” and “Office14”.

cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /act

If you see an error, try this command.

cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /act
Renew Office trial license
Renew Office trial license

Done!

2. Renew Microsoft Windows license

Step 2.1: Open command prompt as administrator.

Step 2.2: Execute this command.

cscript slmgr.vbs /ato

Your license is renewed successfully!

If you would have any questions or concerns, please leave your comments. I would be glad to explain in more details. Thank you so much for all your feedback and support!

4.8/5 - (289 votes)

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

146 Comments

  1. Why isn’t this working for mine? please help 🙁

    Microsoft Windows [Version 10.0.17134.1006]
    (c) 2018 Microsoft Corporation. All rights reserved.

    C:\Windows\system32>cscript “%ProgramFiles%\Microsoft Office\Office16\ospp.vbs” /act
    Microsoft (R) Windows Script Host Version 5.812
    Copyright (C) Microsoft Corporation. All rights reserved.

    Input Error: Can not find script file “C:\Program Files\Microsoft Office\Office16\ospp.vbs”.

    C:\Windows\system32>cscript “%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs” /act
    Microsoft (R) Windows Script Host Version 5.812
    Copyright (C) Microsoft Corporation. All rights reserved.

    Input Error: Can not find script file “C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs”.

    C:\Windows\system32>cscript slmgr.vbs /ato
    Microsoft (R) Windows Script Host Version 5.812
    Copyright (C) Microsoft Corporation. All rights reserved.

    Activating Windows(R), Professional edition (2de67392-b7a7-462a-b1ca-108dd189f588) …
    Error: 0x8007007B The filename, directory name, or volume label syntax is incorrect. (SWbemObjectEx)

    C:\Windows\system32>

  2. The KMS license is valid for only 180 days and will be renewed every 7 days, even with Windows Update disabled?

    1. The KMS license is valid for 180 days, will automatic renew back to 180 days when you online.

      All update from Microsoft, no need to disable Windows update.

  3. 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: 70d9ceb6-6dfa-4da4-b413-18c1c3c76e2e
    LICENSE NAME: Office 16, Office16ProPlusR_Grace edition
    LICENSE DESCRIPTION: Office 16, RETAIL(Grace) channel
    Last 5 characters of installed product key: BTDRB
    ERROR CODE: 0xC004F017
    ERROR DESCRIPTION: The Software Licensing Service reported that the license is not installed.
    —————————————
    —————————————
    —Exiting—————————-

    I get this while i run the code

  4. I am getting below error.. Can you please help me
    Thanks in advance:)
    LICENSE NAME: Office 19, Office19ProPlus2019VL_KMS_Client_AE edition
    LICENSE DESCRIPTION: Office 19, VOLUME_KMSCLIENT channel
    Last 5 characters of installed product key: 6MWKP
    ERROR CODE: 0x8007007B
    ERROR DESCRIPTION: Run the following: cscript ospp.vbs /ddescr:0x8007007B

  5. Hey there! I just built my first gaming pc and I’m trying to activate windows using the commands shown above, but I keep getting an error message as follows:

    Activating Windows(R), Core edition (2b1f36bb-c1cd-4306-bf5c-a0367c2d97d8) …
    Error: 0x803F7001 On a computer running Microsoft Windows non-core edition, run ‘slui.exe 0x2a 0x803F7001’ to display the error text.

    and it isnt working. Any help is appreciated!

    1. Error: 0x803F7001:This problem usually appears after you replace a piece of your computer’s hardware.

  6. Error: 5 Access denied: the requested action requires elevated privileges
    Please help! I really want to activate my windows!
    I get this error message.
    Error: 5 Access denied: the requested action requires elevated privileges

    1. Make sure you right click command and run it as admin. Elevated privileges are just Windows way of saying hey you need to use admin to run this. Even as admin there is some things you still have to run as admin in order for it to work. KMS and other stuff like this won’t work without it. Figured I would try to help since no one has replied. I am currently taking college for CIT classes.

  7. I have this messange and i can´t to active the office 2016

    C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /inpkey:XQNVK-8JYDB-
    WJ9W3-YJ8YR-WFG99
    Microsoft (R) Windows Script Host versión 5.8
    Copyright (C) Microsoft Corporation 1996-2006. Reservados todos los derechos.

    —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.msguide
    s.com
    Microsoft (R) Windows Script Host versión 5.8
    Copyright (C) Microsoft Corporation 1996-2006. Reservados todos los derechos.

    —Processing————————–
    —————————————
    Successfully applied setting.
    —————————————
    —Exiting—————————–

    C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /setprt:1688
    Microsoft (R) Windows Script Host versión 5.8
    Copyright (C) Microsoft Corporation 1996-2006. Reservados todos los derechos.

    —Processing————————–
    —————————————
    Successfully applied setting.
    —————————————
    —Exiting—————————–

    C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /act
    Microsoft (R) Windows Script Host versión 5.8
    Copyright (C) Microsoft Corporation 1996-2006. Reservados todos los derechos.

    —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>

  8. I get the following message!
    Last 5 characters of installed product key: WFG99
    ERROR CODE: 0xC004F074
    ERROR DESCRIPTION: The Software Licensing Service reported that the product could not be activated. No Key Management Service (KMS) could be contacted. Please see the Application Event Log for additional information.
    To view the activation event history run: cscript ospp.vbs /dhistorykms
    NOTICE: A KB article has been detected for activation failure: 0xC004F074
    FOR MORE INFORMATION PLEASE VISIT: https://support.microsoft.com/kb/2870357#Error0xC004F074
    —————————————
    —————————————
    —Exiting—————————–

    C:\WINDOWS\system32>

  9. Hi!! I have tried avery single code I’ve found. I have office 365 but it just doesn’t work It shows that the file was not found. Same error occurs with other codes and other ways to activate it.
    Is there any reasion why my computer won’t let any of this work?

  10. I tried this command to install the product key
    cscript OSPP.VBS /inpkey:YC7DK-G2NP3-2QQC3-J6H88-GVGXT
    to this folder
    c: \Program Files\Microsoft Office\Office15
    it returned to me with this following prompt
    —Processing————————–
    —————————————
    ERROR CODE: 0xC004F069
    ERROR DESCRIPTION: The Software Licensing Service reported that the product SKU is not found.
    —————————————
    —Exiting—————————–

    What does it mean?
    What do I need to do? I can’t activate my MS Office Professional 2013.

    Thanking you in anticipation

  11. ERROR CODE: 0xC004F017
    ERROR DESCRIPTION: The Software Licensing Service reported that the license is not installed.

    ERROR CODE: 0xC004F074
    ERROR DESCRIPTION: The Software Licensing Service reported that the product could not be activated. No Key Management Service (KMS) could be contacted. Please see the Application Event Log for additional information.
    To view the activation event history run: cscript ospp.vbs /dhistorykms
    NOTICE: A KB article has been detected for activation failure: 0xC004F074

    cscript ospp.vbs /dhistorykms
    Microsoft (R) Windows Script Host Version 5.812
    Copyright (C) Microsoft Corporation. All rights reserved.

    Input Error: Can not find script file “C:\Users\dahli\ospp.vbs”.

    1. Office 365 will keep on upgrade to office 2016 pro plus or office 2019 pro plus. This is one of the office 365 main function.

  12. DOES THIS WAY OF ACTIVATION MEANS I NEED A STEADY CONITUOUS INTERNET CONNECTION??

    pls Can we a permanent offline windows and ms office activation ??? can u pls tell us the other way around so that we can have a permanently activated windows & office free of cost???

  13. I work perfect in Windows 7 SP1 Pro command method.

    And the scripts for office 2019 too, are still functional.

    Thank you Guang!

  14. hey!!
    I bought a ASUS Zenbook 13 laptop about half and a month earlier.It had Microsoft office 365 installed in it but after one month it started asking for activation. How can i activate Microsoft office 365 without buying the liscense key. I went through some of your posts and tried to apply some method( copying some code and then saving the file and running it as an administrator) but it didn’t work as my command prompt shows the message that The connection to my KMS server failed! Trying to connect to another one..Sorry! Your version is not supported.
    Please try installing the latest version here: bit.ly/odt2k16

    Please help.

  15. Hi Guang, I’ve tried all your scripts but no one works to renew my Office license.
    I have Office Professional Plus 2013.
    Any ideas from you will be highly appreciated.
    Thanks and keep the good work going.
    Cheers,
    Gazy

  16. upported products: Office 365 ProPlus (x86-x64)

    The system cannot find the path specified.
    The system cannot find the path specified.

    ============================================================================
    Activating your Office…
    ============================================================================

    The connection to my KMS server failed! Trying to connect to another one…
    Please wait…

    ============================================================================

    The connection to my KMS server failed! Trying to connect to another one…
    Please wait…

    ============================================================================

    The connection to my KMS server failed! Trying to connect to another one…
    Please wait…

    ============================================================================
    Sorry! Your version is not supported.
    Please try installing the latest version here: bit.ly/odt2k16

    i follow the steps but it does’nt work

    1. Windows 10 Enterprise LTSC 2019 KMS Activation key: M7XTQ-FN8P6-TTKYV-9D4CC-J462D

      Top search: 2 ways to activate Windows 10 for FREE without additional software

      Use method 1

      Done

      Enjoy

  17. Earlier I had installed ms office 2019 with activation through KMS.I have unstalled MS Office 2019.I followed all the steps but could not able to remove trail as when I opened excel there mentioned that the office is activated but I could not see MS Office 365.I used your KMS cmd code and I found mentioning office 2019 and below office 2016.Pls refer the screenshot at link>> https://drive.google.com/file/d/1y27kP74wbKTsJIDGdoeJxMwGwaITFvXy/view?usp=sharing

    Pls let me know is it correctly installed or not.As new function of ms excel which was introduced in during end of 2018 could not able to see.

    Kindly see the screenshot and let me know.

    1. If you have first install Office 365, it will automatic upgrade to Office 2016.

      If you use Office 365 KMS Activation method to activate with windows 10, It sill can upgrade to Office 2019 and future Office Version Upgrade.

      Remember, every time fail activation of Office 365, you need to remove it before reinstall a new copy of Office 365.

      In the same PC, don’t install Office 365 with other standalone Office 2016 or Office 2019, it will come up all sort of error after activation.

      So the best bet is in Control Panel, uninstall all Office program in your PC.

      Restart PC, Control panel check there is no more Office Program in your PC.

      Install Office 365 at the same time will automatic install Office 2106. Use the Office 365 batch file method to activate first. Then You can still upgrade to office 2019 .

      1. I have mentioned the link in above.From the link what is your opinion in the screenshot.Is it office 365 or office 2019 or office 2016.

        1. The screenshot is Office 365 base upgrade to Office 2016 first, and upgrade to Office 2019.

          If you use Office 365 batch file to activate in the beginning. No need to do any more activation.

          Can keep on upgrade to future Office version and get future new feature as well.

  18. hi. receive error message like below. need your advice… thanks

    C:\>cscript “%ProgramFiles(x86)%\Microsoft Office\Office16\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: 95820f84-6e8c-4d22-b2ce-54953e9911bc
    LICENSE NAME: Office 16, Office16O365HomePremR_SubTrial5 edition
    LICENSE DESCRIPTION: Office 16, TIMEBASED_SUB channel
    Last 5 characters of installed product key: HMFTJ

    —————————————
    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
    ERROR CODE: 0xC004F074
    ERROR DESCRIPTION: The Software Licensing Service reported that the product could not be activated. No Key Management Service (KMS) could be contacted. Please see the Application Event Log for additional information.
    To view the activation event history run: cscript ospp.vbs /dhistorykms
    NOTICE: A KB article has been detected for activation failure: 0xC004F074
    FOR MORE INFORMATION PLEASE VISIT: https://support.microsoft.com/kb/2870357#Error0xC004F074
    —————————————
    Installed product key detected – attempting to activate the following product:
    SKU ID: d7279dd0-e175-49fe-a623-8fc2fc00afc4
    LICENSE NAME: Office 16, Office16O365HomePremR_Grace edition
    LICENSE DESCRIPTION: Office 16, RETAIL(Grace) channel
    Last 5 characters of installed product key: KHGM9
    ERROR CODE: 0xC004F017
    ERROR DESCRIPTION: The Software Licensing Service reported that the license is not installed.
    —————————————
    —————————————
    —Exiting—————————–

    C:\>

    1. For Office installation. Every time fail, must first uninstall before reinstall.

      If Your PC have more than a copy of Office, will come up error.

  19. Doesnt work
    Says theres an error like this:

    C:\WINDOWS\system32>cscript slmgr.vbs /ato
    Microsoft (R) Windows Script Host versión 5.812
    Copyright (C) Microsoft Corporation. Reservados todos los derechos.

    Activating Windows(R), Professional edition (2de67392-b7a7-462a-b1ca-108dd189f588) …
    Error: 0x80070002 El sistema no puede encontrar el archivo especificado. (SWbemObjectEx)

  20. 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
    ERROR CODE: 0xC004F074
    ERROR DESCRIPTION: The Software Licensing Service reported that the product could not be activated. No Key Management Service (KMS) could be contacted. Please see the Application Event Log for additional information.
    To view the activation event history run: cscript ospp.vbs /dhistorykms
    NOTICE: A KB article has been detected for activation failure: 0xC004F074
    FOR MORE INFORMATION PLEASE VISIT: https://support.microsoft.com/kb/2870357#Error0xC004F074
    —————————————
    —————————————
    —Exiting—————————–