Is it possible to run an unelevated command in an elevated session?

I have been working on tweaking and customizing /u/noahpeltier ‘s AdminToolBox (really nice script by the way)

The issue I have come across is that I found it easiest to have the script prompt and elevate to run as admin right away because in my environment we do not login as or domain admin accounts and we try to do as much as we can with the runas.

What I want to do is add an email user function to the tool and I see that /u/noahpeltier already had the function in there but since the script is running elevated my admin account will not open “mailto:” as our admin accounts do not have email accounts.

I am struggling to find a solution to have it run that function as though I did not elevate the script.

Thoughts suggestions?

submitted by /u/Stelzig
[link] [comments]

Leave a Reply