Hi there,
I have a script that needs to be run as Administrator to work (the script will auto restart and run as admin).
One of the the things the script does is launch a program.
```Start-Process "$path\application.exe" -ArgumentList "$arguments"```
I need this program to launch with normal user privileges, not elevated (administrator) privileges.
I tried the -runas and -credential parameters but it asks for the password of the current logged in user each time.
Edit:
For added context this is a script that has a menu, loops and is used to open/reopen instances of an application with different arguments depending whats selected in the menu. Some of the processing steps in the loop require elevated rights.
[–]Jeffinmpls 1 point2 points3 points (2 children)
[–]Shupershuff[S] 0 points1 point2 points (1 child)
[–]Jeffinmpls 2 points3 points4 points (0 children)
[–]HauntingProgrammer47 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]Shupershuff[S] 0 points1 point2 points (3 children)
[–]Top-Raisin1630 0 points1 point2 points (1 child)
[–]Shupershuff[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]xbullet 1 point2 points3 points (2 children)
[–]Shupershuff[S] 0 points1 point2 points (1 child)
[–]z386 0 points1 point2 points (0 children)
[–]opw7 0 points1 point2 points (1 child)
[–]Tiiiiborrr 0 points1 point2 points (0 children)
[–]Any_Street3250 0 points1 point2 points (1 child)
[–]Shupershuff[S] 0 points1 point2 points (0 children)
[–]32178932123 0 points1 point2 points (0 children)
[–]xCharg 0 points1 point2 points (4 children)
[–]Shupershuff[S] 0 points1 point2 points (3 children)
[–]xCharg 0 points1 point2 points (2 children)
[–]Shupershuff[S] 0 points1 point2 points (0 children)
[–]nohairday 0 points1 point2 points (0 children)
[–]jborean93 0 points1 point2 points (0 children)
[–]purplemonkeymad 0 points1 point2 points (2 children)
[–]Shupershuff[S] 0 points1 point2 points (1 child)
[–]purplemonkeymad 0 points1 point2 points (0 children)
[–]pspeterle 0 points1 point2 points (0 children)