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