Uninstall Microsoft product trial license or KMS license completely
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
1 | cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /dstatus
If you see an error, try this command.
1 | 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�.
Step 3: Copy and run these commands to remove the license. Note: replace �VMFTK�
with the last 5 characters
of your product key.
1 | cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs"
/unpkey:VMFTK
If you see an error, try this command
1 | cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs"
/unpkey:VMFTK
Step 4: Done
===================================================================================
========================================
Steps to remove your Windows license
Step 1: Open command prompt with admin rights.
Step 2: Execute this command.
1 | cscript slmgr.vbs /upk&cscript slmgr.vbs /cpky
Srep 3: Done! The license you want to remove is uninstalled successfully.