Forum Discussion
Intune | Powershell Script
- 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
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
- AnuragSrivastavaJan 03, 2021Iron Contributor
Oliver Kieselbach Thanks Oliver, this helps.