Reset Office 365 ProPlus activation state
It’s very common for users to switch devices or for an enterprise company to add/change Office 365 tenants. Another scenario is when enterprise organizations roam licensing/credentials to simplify sign in. After an Office 365 user activates there are four locations that must be cleared to reset the activation/install to a clean state.
1. Remove Office 365 license for Subscription based installs (not Shared Computer Licensing scenarios):
To remove the Office 365 license, you must run two cscript command lines. The command lines are:
A. Run C:\program files <x86>\Microsoft office\office16>cscript ospp.vbs /dstatus
The above command line will generate a report of the currently installed/activated license. (See Below)
B. Make note of value for “Last 5 characters of installed product key”
C. Run C:\program files <x86>\Microsoft office\office16>cscript ospp.vbs /unpkey:“Last 5 of installed product key” For example: C:\program files <x86>\Microsoft office\office15>cscript ospp.vbs /unpkey:WB222 (See Below) Repeat the step above if necessary until all keys are removed.
2. Remove cached identities in HKCU registry:
A. In the Registry Editor navigate to HKCU\Software\Microsoft\Office\15.0 or 16.0\Common\Identity\Identities and remove all of the identities under \Identities.
NOTE: If using Shared Computer Licensing remove the above Identities from HKEYUsers\SID.