- Office 365 ProPlus is the version of Office that comes with certain Office 365 plans like E3 or E5, as well as being available as a standalone option, that can be bought on its own. These are subscription user-based licences that have ongoing monthly costs.
- The Office 365 ProPlus program allows current CU Boulder faculty, staff and students to download the latest versions of Microsoft Office software at no cost. All available applications (dependent on device) may be installed on up to 5 computers and 5 mobile devices.
Step 1: Remove Office 365 license for subscription -based installations Note If Shared Computer Activation (SCA) is enabled and running, you shouldn't see any product keys installed during the procedure.
-->This article is written and maintained by Eric Splichal, Support Escalation Engineer and Matt Philipenko, Sr Premier Field Engineer.
It's common for users to switch devices or for an enterprise to add or change M365 or O365 tenants. Another scenario is when enterprise organizations roam licenses or credentials to simplify the sign-in process. After a user is activated, multiple locations must be cleared to reset the application to a clean state.
Note
O365 Proplus Odt
To automatically perform all of the checks listed below and run the appropriate scripts needed to reset the activation state, you can download and run the Microsoft Support and Recovery Assistant.

Step 1: Remove Office 365 license for subscription -based installations
Note
If Shared Computer Activation (SCA) is enabled and running, you shouldn't see any product keys installed during the procedure. If you're trying to set up SCA on a computer, make sure to clean up existing keys first.
Here's how to remove the Office 365 license:
Note
The ospp.vbs
script is in the <Program FilesMicrosoft OfficeOffice16> folder. If the 32-bit version of Office is installed on a 64-bit operating system, the script is in the <Program Files (x86)Microsoft OfficeOffice16 folder>. Before running the ospp.vbs
command, set the correct directory by using one of these commands, based on your Office version:
cd C:Program Files (x86)Microsoft OfficeOffice16
cd C:Program FilesMicrosoft OfficeOffice16
In an elevated command window, run the cd command based on your install location:
or
Run the following script command:
The
ospp.vbs
command generates a report of the licenses currently in use. The output is in this format:Note
The report could include multiple licenses. If the output contains a 'No installed Product Keys' message after you run
ospp.vbs /dstatus
, skip the section below and go to 'Step 2: Remove cached identities in HKCU registry'.Take note of the Last 5 characters of the installed product key.
If a partial product key is returned from
/dstatus
, run the following command:For example:
Repeat the command until all keys are removed.
If the output contains the message 'product key uninstall successful', close the Command Prompt window and go to Step 2.
Note
For Shared Computer Activation (SCA), remove the tokens listed here:%localappdata%MicrosoftOffice16.0Licensing
Step 2: Remove cached identities in HKCU registry
Warning
Follow this section's steps carefully. Incorrect registry entries can cause serious system issues. As a precaution, back up the registry for restoration.
In Registry Editor, locate the following registry:
HKEY_CURRENT_USERSoftwareMicrosoftOffice16.0CommonIdentityIdentities
Remove all identities under the Identities
registry entry.
Note
If you have Shared Computer Licensing enabled, remove the same identities from the registry HKEY_USERSThe user's SID
.
Step 3: Remove the stored credentials in Credential Manager
Open Control Panel > Credential Manager.
Remove all Windows credentials listed for Office16 by selecting the drop-down arrow and Remove.
Step 4: Clear persisted locations
Clear the following persisted locations if they exist:
Cached
Credential Manager
%appdata%MicrosoftCredentials
%localappdata%MicrosoftCredentials
%appdata%MicrosoftProtect
HKEY_CURRENT_USERSoftwareMicrosoftProtected Storage System Provider
Office 365 activation tokens and identities
%localappdata%MicrosoftOffice16.0Licensing
%localappdata%MicrosoftOfficeLicenses
(Microsoft 365 Apps for enterprise version 1909 or later)HKEY_CURRENT_USERSoftwareMicrosoftOffice16.0CommonIdentity
HKEY_USERSThe user's SIDSoftwareMicrosoftOffice16.0CommonIdentity
OLicenseCleanup.vbs
The four steps above can be automated using OLicenseCleanup.vbs. Simply download and run the script with elevated privileges.
Clear Office credentials and activation state for managed devices
The above steps reset the Office activation for unmanaged devices (Domain Joined aka DJ). In a managed environment, more locations store credentials.
Devices are considered managed if they're Azure AD Joined (AADJ), Hybrid Azure AD Joined (HAADJ), or Workplace Joined (WPJ). These configurations use Web Account Management (WAM), which stores credentials in different locations.
Here's how to find out if a device is DJ, AADJ, HAADJ, or WPJ:
Open a command prompt as an administrator.
Type
dsregcmd /status
.Domain Joined (DJ):
Azure AD Joined (AADJ):
Hybrid Azure AD Joined (HAADJ):
Workplace Joined (WPJ):

In scenarios where all stored credentials (such as domain/tenant migration) must be cleared, clear the additional WAM locations.
To clear all WAM accounts associated with Office on the device, download and run the signoutofwamaccounts.ps1 script with elevated privileges.
Note
- This script will remove tokens and accounts associated with Office, this is a safe operation. Single sign-on (SSO) of other applications will remain untouched, as well as the device state.
- This script is only compatible with Windows 10 version 1803 and later. If the OS isn't compatible, you'll receive a message saying the tool isn't supported on that version of Windows.
- Signoutofwamaccounts.ps1 can be ran separately or in conjuction with OLicenseCleanup.vbs. If you place signoutofwamaccounts.ps1 in the same location as OLicenseCleanup.vbs, running only OLicenseCleanup.vbs will also execute Signoutofwamaccounts.ps1.
Microsoft Office 365 ProPlus Plan | O365CloudExperts
Clear credentials from Workplace Join
To manually clear Workplace Joined accounts, go to Access Work or School on the device and select Disconnect to remove the device from WPJ.
To automate WPJ removal, download WPJCleanUp.zip, extract the folder, and run WPJCleanUp.cmd.
Note
Microsoft Apps For Business
This tool removes all SSO accounts in the current Windows logon session. After this operation, all applications in the current logon session will lose SSO state, and the device will be unenrolled from management tools (MDM) and unregistered from the cloud. The next time an application tries to sign in, users will be asked to add the account again.
O365 Proplus Exe
Additional Information: Plan your hybrid Azure Active Directory join implementation
