There may come a time when you need to re-license an O365 desktop installation, e.g. if it was licensed to a user who is no longer at the company and needs to be updated. You can uninstall and then reinstall under the correct user (by downloading from that user’s Office portal, or you can actually change how the installed software is licensed by doing the following.
- Remove the Identities folder from the Registry
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity\Identities
and delete the “Identities” folder - Run as Administrator:
cscript.exe "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /dstatus
- Run as Administrator:
cscript.exe "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /unpkey:XXXXX
Additionally, do this to remove the “Belongs to: jimbob@domain.com” (example) from the Account properties in the Office programs.
- Go to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration
and remove the contents of the O365ProPlusRetail.EmailAddress string.