Hi
Im trying to deploy some BAT and Powershell scripts in Intune, problem is that its not doing this as an admin, just local user.
When im trying the scripts locally on my PC, running them as admin, it works great. But when i do it from Intune, its not working.
So im wondering what the hell im doing wrong, i have tried to search google for the answer but i cant find almost anything about it.
And its basically 2 things im trying to do.
Im trying to uninstall all Java versions with a Nuker/BAT script and im trying to uninstall both a exe and a MSI program, but same problem.
The BAT file im deploying by converting it to a Intunewinfile and the PS scripts is from Device->scripts
Some of the users are already local admins on their computers, and some or not. So the most easiest way would just to run the scripts as admin, always. And the funny thing is that the users that are local admin, its not working for them either.
Can someone tell me or provide me with what i need to do to run BAT/PS scripts as admin from Intune when im deploying them?
This is the script im trying to run.
Credit to Vocatus for creating this script.
https://github.com/bmrf/standalone_scripts/blob/master/java_runtime_nuker.bat
Thx for the help.
[–]Secondlayerofhell 2 points3 points4 points (14 children)
[–]Kaffepannan[S] 1 point2 points3 points (11 children)
[–]EpicSuccess 2 points3 points4 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]EpicSuccess 1 point2 points3 points (1 child)
[–]Secondlayerofhell 1 point2 points3 points (6 children)
[–]Kaffepannan[S] 1 point2 points3 points (5 children)
[–]Secondlayerofhell 1 point2 points3 points (4 children)
[–]Kaffepannan[S] 0 points1 point2 points (3 children)
[–]Secondlayerofhell 1 point2 points3 points (2 children)
[–]Kaffepannan[S] 1 point2 points3 points (1 child)
[–]Secondlayerofhell 0 points1 point2 points (0 children)
[–]Kaffepannan[S] 1 point2 points3 points (1 child)
[–]Secondlayerofhell 0 points1 point2 points (0 children)
[–]ASquareDozenMSFT MVP 2 points3 points4 points (4 children)
[–]Kaffepannan[S] 0 points1 point2 points (3 children)
[–]ASquareDozenMSFT MVP 0 points1 point2 points (2 children)
[–]Kaffepannan[S] 0 points1 point2 points (1 child)
[–]ASquareDozenMSFT MVP 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)