Uninstall Microsoft product trial license or KMS license completely

As you know, the new Microsoft product installation usually includes a 30-days free trial license. However, the problem here is that the trial license is not uninstalled automatically when it is expired. And so this leads to the paradox that it keeps saying “Most features are disabled” or “Windows is not activated” even after activating it using a valid license. Besides, some of you guys who have ever used KMS license to activate your Windows or your Office and now you just want to remove it in order to use another product key. This is similar to the problem I just mentioned. And to address these issues, please do the following steps.

1. Steps to remove your Office license

Step 1.1: Open command prompt as administrator.

Step 1.2: Copy/run this command to determine what is the license key you want to remove.

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

If you see an error, try this command.

cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /dstatus

Note: “Office16” is codename of Office 2016. If you are using Office 2010/2013, replace “Office16” with “Office14” or “Office15”.

Determine license you want to remove
Determine license you want to remove

Step 1.3: Copy and run these commands to remove the license. Note: replace “VMFTK” with the last 5 characters of your product key.

cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:VMFTK

If you see an error, try this command.

cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /unpkey:VMFTK
Office product key is uninstalled successfully
Office product key is uninstalled successfully

Done!

2. Steps to remove your Windows license

Step 2.1: Open command prompt with admin rights.

Step 2.2: Execute this command.

cscript slmgr.vbs /upk&cscript slmgr.vbs /cpky
Windows product key is removed successfully
Windows product key is removed successfully

Done! The license you want to remove is uninstalled 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!

5/5 - (278 votes)

Similar Posts

Leave a Reply

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

110 Comments

  1. Hi, I have office home and office pre-installed, and I cracked it with kms key to office 2021 pro plus. Now out of curiosity I uninstalled it by your method to try if ms 365 gets activated next time with kms key, but now my license is switched back to home and student (preinstalled) and when I activate office 2021/365 pro plus, it shows product activated successfully but still stays on home and student and is not getting activated in real. Please tell me solution to reactivate it.

  2. Kindly refer below … (error description …. ) TQVM

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

    —Processing————————–
    —————————————
    ERROR DESCRIPTION: An unknown error occurred. (0x1A8)
    —————————————
    —Exiting—————————–

  3. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    CMD Logs
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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

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

    —Processing————————–
    —————————————

    —————————————
    —————————————
    —Exiting—————————–

    C:\WINDOWS\system32>cd /d %ProgramFiles%\Microsoft Office\Office16

    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:s8.now.im
    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
    ERROR CODE: 0xC004E015
    ERROR DESCRIPTION: The Software Licensing Service reported that license consumption failed.
    —————————————
    —————————————
    —Exiting—————————–

    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    How do I fix this 0xC00E015 error? The KMS Client activation was working for me multiple times before but now all of a sudden, it keeps popping out this error everytime I try and run the “cscript ospp.vbs /act” command.

  4. O*G thank you so much! I’d installed a KMS license to use Office 2019 for free, but after some time it started having problems, so I bought Office 365. The problem was that I couldn’t make it work because the f*****g fake license was still there, somewhere. Now the original version is working, thanks a lot!

  5. Thank you so much Mr. Guang, among so many suggestions in google your information is correct and help me to uninstall licence

  6. Hello, wanted to remove the windows licenses but got this error:

    Error: 0xC0000022 On a computer running Microsoft Windows non-core edition, run ‘slui.exe 0x2a 0xC0000022’ to display the error text.

    Any work around how to fix this please? Need help so I can activate my windows.

  7. HEY MATE!
    PLEASE UPDATE YOUR INSTRUCTIONS FOR OFFICE 365 & 2019!
    ASK VISITORS TO CLICK THEIR VERSION FIRST, THEN LINK DOWN THE PAGE TO #2016 #2019 #365 etc.
    OR HAVE EXPANDABLE / COLLAPSABLE SECTIONS FOR EACH EDITION 😀 =)
    KEEP UP THE GREAT WORK! 🖖🤘👍😊😎😇🤩

    1. WHAT IS THE CORRECT MICROSOFT OFFICE INSTALLATION PATH? WHERE IS OFFICE CLICK-TO-RUN C2R INSTALLED? WHERE IS MY OFFICE LOCATED?

      THE CORRECT OFFICE & OFFICE 365 INSTALLATION PATHS! I HOPE THIS HELPS YOUR 😇🙏😎

      Office 365
      -» x86 32bit: C:\Program Files (x86)\Microsoft Office\root\Office16\
      -» x64 64bit: C:\Program Files\Microsoft Office\root\Office16\ (rarely used due to Outlook and Office x64 Plugin incompatibility)

      Click-To-Run (C2R)
      -» C:\Program Files\Common Files\Microsoft Shared\ClickToRun\
      …?

      Office 2019 (????)
      -» x86 32bit: C:\Program Files (x86)\Microsoft Office\Office16\
      -» x64 64bit: C:\Program Files\Microsoft Office\Office16\ (rarely used due to Outlook and Office x64 Plugin incompatibility)
      Click-To-Run (C2R)
      -» x86 32bit: C:\Program Files (x86)\Microsoft Office 16\ClientX86\Root\Office16\
      -» x64 64bit: C:\Program Files\Microsoft Office 16\ClientX64\Root\Office16\

      Office 2016
      -» x86 32bit: C:\Program Files (x86)\Microsoft Office\Office16\
      -» x64 64bit: C:\Program Files\Microsoft Office\Office16\ (rarely used due to Outlook and Office x64 Plugin incompatibility)
      Office 2016 Click-To-Run (C2R)
      -» x86 32bit: C:\Program Files (x86)\Microsoft Office 16\ClientX86\Root\Office16\
      -» x64 64bit: C:\Program Files\Microsoft Office 16\ClientX64\Root\Office16\

      Office 2013
      -» x86 32bit: C:\Program Files (x86)\Microsoft Office\Office15\
      -» x64 64bit: C:\Program Files\Microsoft Office\Office15\ (rarely used due to Outlook and Office x64 Plugin incompatibility)
      Office 2013 Click-To-Run (C2R)
      -» x86 32bit: C:\Program Files (x86)\Microsoft Office 15\ClientX86\Root\Office15\
      -» x64 64bit: C:\Program Files\Microsoft Office 15\ClientX64\Root\Office15\

      Office 2010
      -» x86 32bit: C:\Program Files (x86)\Microsoft Office\Office14\
      -» x64 64bit: C:\Program Files\Microsoft Office\Office14\ (rarely used due to Outlook and Office x64 Plugin incompatibility)
      Office 2010 Click-To-Run (C2R)
      -» x86 32bit: C:\Program Files (x86)\Microsoft Office 14\ClientX86\Root\Office14\
      -» x64 64bit: C:\Program Files\Microsoft Office 14\ClientX64\Root\Office14\

      /End.

  8. Thank you very much for this article!
    I needed to remove the fake non-genuine install from a computer and install a real license and this did the trick.
    The genuine install kept asking for a the non-genuine license activation!

    it was bazaar!
    After removing the unlicensed copy per your instructions, all worked well!

  9. Hi guys ☺️,
    Can anyone help me?

    I run the command given by msguides to activate windows 10, after I wanted to unactivate it due to security reasons, I then run the command given by msguides to uninstall ksm activation but after 4-5 day my windows got activated again this thing happens to me 5 times I keep on unactivating my windows it automatically get activated please help me to permanently unactivate my windows. 🙏🙏

      1. @KWONG Perhaps think about other elements in OS that are triggering cached re-activation. e.g. Scheduled Tasks not removed, plus services that can be manually Stopped.
        What are the exact names of the scheduled tasks created by your script? 🙏😇

      2. I’m having the same problem and can’t install a genuine key. Pls help, I’m not sure how this image is supposed to help.

      3. Hello kwong I used the kms script to activate my windows 10, now my microsoft store keeps bringing an error any time i try opening it. I think it has to do with the kms script. I can’t start from a fresh disc now because I don’t have the money to get one now. I’d like you to tell me what activation scheduled tasks to remove and how to remove them because i really need to get some apps from the store. Thanks

          1. NEED TO REMOVE ALL ACTIVATION-RELATED SCHEDULED TASKS CREATED BY MSGUIDE’S SCRIPT. 🕵️‍♂️
            ASK @KWONG WHICH TASKS NEED TO BE REMOVED! 🤐

        1. NEED TO REMOVE ALL ACTIVATION-RELATED SCHEDULED TASKS CREATED BY MSGUIDE’S SCRIPT. 🕵️‍♂️
          ASK @KWONG WHICH TASKS NEED TO BE REMOVED! 🤐

      1. NEED TO REMOVE ALL ACTIVATION-RELATED SCHEDULED TASKS CREATED BY MSGUIDE’S SCRIPT. 🕵️‍♂️
        ASK @KWONG WHICH TASKS NEED TO BE REMOVED! 🤐

  10. Dear Guang,
    Hi. How are you?
    Office 2010. OfficeProPlus-KMS_Client edition. I cannot remove office product key. It says
    ERROR CODE: 0xC004F025
    ERROR DESCRIPTION: The Software Licensing Service reported that the action requires administrator privilege. Please help me to solve this issue.
    Thanks,
    Rivon

  11. O*G!!!! This was great, thank you, BUT you should NOT have the last one about removing the WINDOWS KEY so close to the other tutorial!!!!!! I RAN THE COMMAND THINKING IT WAS STILL PART OF THE SAME OFFICE KEY REMOVAL GUIDE. Thank goodness it said: input error cannot find ….script.

    Thank you for the first portion, though. Worked like a charm.