The four steps above can be automated using OLicenseCleanup.vbs.
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity.%localappdata%\Microsoft\Office\Licenses (Microsoft 365 Apps for enterprise version 1909 or later).%localappdata%\Microsoft\Office\16.0\Licensing.Office 365 activation tokens and identities HKEY_CURRENT_USER\Software\Microsoft\Protected Storage System Provider.Remove all Windows credentials listed for Office16 by selecting the drop-down arrow and Remove.Ĭlear the following persisted locations if they exist: Credential Manager Step 3: Remove the stored credentials in Credential Manager If you have Shared Computer Licensing enabled, remove the same identities from the registry HKEY_USERS\The user's SID.