To uninstall a click-to-run key
Recently I came across an issue regarding a click-to-run office application. A friend of mine had installed the office app to a user, using his administrator account. Unfortunately the “belongs to” section was permanently grayed out and he was not able to change the app’s ownership.
Let’s try to reproduce the problem and help him out.
I have logged in the office portal with the administrator account “administrator@xxxx.onmicrosoft.com” and started downloading the office app.
After the installation is finished, I get this.
I have clicked on “manage account” and deactivated the product installation, but the status remains like this.
There is no button for me to change the ownership. I even tried to sign in with my account panagos@xxxx.onmicrosoft.com, to no avail. The ownership lies with the administrator.
It’s about time to fix this issue. Open cmd with administrative privileges and change directory to C:\Program Files (x86)\Microsoft Office\Office16
Type: cscript ospp.vbs /dstatus , in order to find out the installed key.
Here is the administrator’s key.
Now type: cscript ospp.vbs /unpkey:2WD6D , this will unpin the installed key.
If you launch the office app again, you will see that the current account has taken over and the problem is solved.
On the my post I will demonstrate how to install a C2R application without logging in the office portal.