Ok i will bite but what does this have to do with cm?
Running script with elevated permissions at logon automatically from Group Policy
![](https://techprofile.blob.core.windows.net/images/-1DQKoruB0WyimmorV7VQw.png?8DA6F1)
I'm migrating users from one tenant to another, and with this comes a fresh 365 license, therefore I need to remove the Users old license, cache and outlook profiles.
I've found the following article that provides the scripts to do these actions: https://learn.microsoft.com/en-us/office/troubleshoot/activation/reset-office-365-proplus-activation-state#method2
However, the scripts need to run with elevated permissions, and the Run at Logon group policy only runs at a user instance level, therefore meaning the 3 scripts won't work.
The following scripts from the site:
- OLicenseCleanup.vbs - requires elevated permissions
- signoutofwamaccounts.ps1 - requires elevated permissions
- WPJCleanUp.cmd
Does anyone know of an alternative method to get these scripts to only run once, per user, per computer?
Maybes running this from Microsoft Endpoint Configuration Manager?