

This tool removes all SSO accounts in the current Windows logon session. To clear all WAM accounts associated with Office on the device, download and run the signoutofwamaccounts.ps1 script with elevated privileges. In scenarios where all stored credentials (such as domain/tenant migration) must be cleared, clear the additional WAM locations. Open a command prompt as an administrator.
Remove office license office365 how to#
Here's how to find out if a device is DJ, AADJ, HAADJ, or WPJ: These configurations use Web Account Management (WAM), which stores credentials in different locations. In a managed environment, more locations store credentials.ĭevices are considered managed if they're Azure AD Joined (AADJ), Hybrid Azure AD Joined (HAADJ), or Workplace Joined (WPJ). The above steps reset the Office activation for unmanaged devices (Domain Joined aka DJ). Clear Office credentials and activation state for managed devices Simply download and run the script with elevated privileges. The four steps above can be automated using OLicenseCleanup.vbs. HKEY_USERS\The user's SID\Software\Microsoft\Office\16.0\Common\Identity.HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity.%localappdata%\Microsoft\Office\Licenses (Microsoft 365 Apps for enterprise version 1909 or later).

