
Remove all license token files and folders if found in the following locations: Make sure to check all the noted locations for potential license types, which include vNext, Shared Computer Activation, and legacy licenses. Part 1: Remove previous Office activationsĬheck for and remove existing licenses on the device. The process consists of the following sections. If you prefer to perform the steps for the cleanup process manually, use the information in this method. Method: Clear prior activation information manually

If you save signoutofwamaccounts.ps1 in the same location as OLicenseCleanup.vbs, then it will be executed automatically when you run OLicenseCleanup.vbs.

Use the “Select if using automated scripts” link to navigate back to this method. For details about the specific steps that each script automates, select the associated Details link. We recommend that you run the OLicenseCleanup.vbs and signoutofwamaccounts.ps1 scripts listed below, while WPJCleanUp.cmd is required only if your device is Workplace Joined. Run the following scripts that automate each section of the process. Method: Use scripts to automate the cleanup process
