Run GPO Logon Script as another user / admin / elevated permission
Posted on 2014-08-21
We have a massive upgrade happening to one of our servers and it is causing us to have to uninstall all java versions from all of our machines (~1200) and then install a new version. Now I have a script to uninstall the old versions but I am having issues running it with permissions.
I cannot run this as a startup script because of network issues, this needs to be run though the logon script area. The script I have works if an admin logs in, however it does not work if a normal domain user logs in. Is there any way to run a logon script with elevated permissions? I see that I can add parameters to my GPO and powershell scripts, but I do not know what syntax I would use.
Any thoughts welcome, thanks!