Should support "run as" functionality when executing scripts (Applications, Run Scripts, etc.)
SCCM PowerShell scripts running in a corporate environment are hobbled due to the NT AUTHORITY\SYSTEM context. I have multiple cases where I could create an Application that just runs a PowerShell script but the script needs to run as a domain admin to do what it has to. The new Scripts feature also needs run-as functionality for fire & forget type tasks. Including a run-as facility in SCCM would significantly extend the product's flexibility.
Tim Crosby commented
Add an option to run scripts as the currently logged on user. This would allow returning of data that is difficult to retrieve as System. One example would be finding user certificates installed.
Yes, will be great to have the run as feature and run for current user too.
Being able to run the script as the user when/if they logon so the script can report user settings and conditions would be very helpful.
Why we can't Run script on users colllection as it's the case for Device collection