


cd "C:\Program Files\Microsoft Office\Office16".For a 64-bit Office installation on a 64-bit operating system:.Run one of the following commands from an elevated command prompt, as appropriate for your Office installation: The user account you use is a member of the Administrators group on the computer on which you run the script.īefore you run the ospp.vbs script, you must set the correct directory.If you want to run the script on a remote computer, the Windows firewall allows Windows Management Instrumentation (WMI) traffic on the remote computer.%localappdata%\Microsoft\Office\16.0\LicensingĬheck for and remove legacy licensing by using the ospp.vbs script.For Shared Computer Activation license type:.%localappdata%\Microsoft\Office\Licenses (Microsoft 365 Apps for enterprise version 1909 or later).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
