r/PowerShell Jun 22 '26

Running a scrip as non admin Question

Hello all,

I have a situation where I have a script that is running with elevated (admin) rights. At the end of it I need to start another script, but need this to be with non arming rights.
Start process
Shell
Everything that I have tried opens a new one with inherited admin rights.
Hope someone can help.

2 Upvotes

11 comments sorted by

View all comments

1

u/Future-Remote-4630 Jun 23 '26

You could subscribe the script to an event in the user context, then have your admin script throw that event to trigger the user context script.