Forum Discussion

AnuragSrivastava's avatar
AnuragSrivastava
Iron Contributor
Dec 20, 2020

Intune | Powershell Script

Hi, When we add and run a script via Intune, so does it run with an administrator privilege or with normal user privilege. Actually I need to uninstall an application from few of the endpoints for ...
  • Oliver Kieselbach's avatar
    Dec 31, 2020

    Hi AnuragSrivastava,

     

    I can't add more to the execution context except of the UAC question, which comes up quite often here. In system context you don't have to worry about UAC. You are system and can do whatever you want then.

    Last thing to mention is the different context, as already described, results also in different resolving of environment variables like %username% is not the logged on user it is the user SYSTEM then. Or take %userprofile% it will result in C:\Windows\System32\Config\systemprofile.

     

    best,

    Oliver

Resources