Uninstall Microsoft product trial license or KMS license completely

Posted by in Computer Tips | Last updated on

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.

Steps to remove your Office license

Step 1: Open command prompt as administrator.

Step 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 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!

Steps to remove your Windows license

Step 1: Open command prompt with admin rights.

Step 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!


For faster support, please visit here for troubleshooting.
Need more help? Please email me at msguides.com@gmail.com

Leave a Reply

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


80 thoughts on “Uninstall Microsoft product trial license or KMS license completely

  1. Stevo

    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! 🖖🤘👍😊😎😇🤩

    Reply
    1. Stevo

      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.

      Reply
  2. Hani

    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!

    Reply
  3. Ayush Aggarwal

    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. 🙏🙏

    Reply
      1. Stevo

        @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? 🙏😇

        Reply
          1. Stevo

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

        1. Stevo

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

          Reply
      1. Stevo

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

        Reply
  4. Rivon

    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

    Reply
  5. Jaqi

    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.

    Reply