Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
I was able to resolve this today on 2 of our computers with similar issues. I followed the steps listed here: Microsoft Learn but pasted the relevant portion below.
Steps to Fix Office Activation Error
- Remove all license token files and folders if found in the following locations: **Nothing was here for me, so I proceeded to step 2.** a. For vNext license type:
(Microsoft 365 Apps for enterprise version 1909 or later) b. For Shared Computer Activation license type:%localappdata%\Microsoft\Office\Licenses%localappdata%\Microsoft\Office\16.0\Licensing - Check for and remove legacy licensing by using the ospp.vbs script. IMPORTANT: Make sure that the user account you use is a member of the Administrators group on the computer on which you run the script. a. Navigate to the correct directory. Run one of the following commands from an elevated command prompt, as appropriate for your Office installation: i. For a 64-bit Office installation on a 64-bit operating system:
ii. For a 32-bit Office installation on a 64-bit operating system:cd "C:\Program Files\Microsoft Office\Office16"cd "C:\Program Files (x86)\Microsoft Office\Office16" - Run the following command to get a list of the licenses currently in use:
NOTE: The output could include licenses for multiple applications. If it displays “No installed product keys detected,” skip steps 4 and 5 and go to step 6, “Delete the following registry entry,” below. If a partial product key is returned for the applications whose licenses you want to remove, note the value displayed for Last 5 characters of the installed product key to use in step 4, below.cscript ospp.vbs /dstatus - Run the following command to remove the license for an application by using the associated partial product key:
For example:cscript ospp.vbs /unpkey:<last 5 characters of product key>
You should see the message “Product key uninstall successful” when the license is removed.cscript ospp.vbs /unpkey:2WC00 - Repeat the
cscript ospp.vbs /unpkeycommand as needed to remove the licenses for the applications listed in the output from step 3. - Delete the following registry entry: ** I think this step made all the difference**
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Licensing
Part 2: Remove Cached Office Account Identities in HKCU Registry
- Delete the following registry entry:
If you have Shared Computer Activation enabled, remove the Identity registry key location from theHKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\IdentityHKEY_USERS\<The user SID>\Software\Microsoft\Office\16.0\Commonregistry key. To get the currently signed-in user’s SID, run the commandwhoami /userin a non-elevated command prompt. - Check for and delete any values present under the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Protected Storage System