Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Hi doru50,
Thanks for posting back.
I'm wondering if you have tried the methods mentioned in my first reply. They should be able to remove the local license files and deactivate Office on your device. After that, your friend can log into his account and check the results.
According to the steps in your reply, I suggest you try the following steps to deactivate Office.
1. Open File Explorer, copy/paste the following path directly, go to the path (press Enter) and delete all files and folders. If you still cannot access one of the following paths, then try the next path.
%localappdata%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy
%localappdata%/Microsoft/OneAuth
%localappdata%/Microsoft/IdentityCache
%localappdata%\Microsoft\Office\Licenses
- Run Command Prompt (run as administrator)
a. Run cd /d %ProgramFiles%\Microsoft Office\Office16in Command Prompt.
b. Run cscript ospp.vbs /dstatus
You should get the last 5 characters of installed product key as shown in the screenshot below
c. Run cscript ospp.vbs /unpkey:xxxxx
xxxxx is the last 5 characters you get
d. Let your friend run one Office application and log in to his account to activate Office. Make sure that his account is associated with the relevant subscription.
We look forward to your response. Thanks for your cooperation.
Sincerely,
George | Microsoft Community Moderator