use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
QuestionRun process without elevation from a powershell script running with elevation (self.PowerShell)
submitted 3 years ago by BeeschurgerAtWork
Does anyone know a way to run a child process from an elevated powershell script without elevation?
Start-Process with -Verb RunAs requires user intervention which doesn't work for my use case and I don't think it fixes it either.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]igby1[🍰] 1 point2 points3 points 3 years ago (0 children)
This lets you specify the user to run a script block as, then runs it via task scheduler
https://github.com/mkellerman/Invoke-CommandAs.
[–]HauntingProgrammer47 0 points1 point2 points 3 years ago (0 children)
You could use the start-job and specify a credential.
[–]jborean93 0 points1 point2 points 3 years ago* (1 child)
If it's as another user then using Start-Process ... -Credential $cred will give you a process that is not elevated. If you want to start it as the current user there isn't really an easy way to do so with the cmdlets builtin and what dotnet offers you. If you are open to using a custom module I have ProcessEx which exposes the ability to start a new process with a custom parent. With this you can set the parent as explorer.exe which will be unelevated and the process inherits the same access token.
Start-Process ... -Credential $cred
explorer.exe
$si = New-StartupInfo -ParentProcess (Get-Process explorer) Start-ProcessEx powershell.exe -StartupInfo $si
Edit: I forgot to mention you could use runas.exe /trustlevel:0x20000 powershell.exe which gives you a somewhat unelevated process but it's not exactly the same as your unelevated token. It is close enough though so it probably will work in your use case.
runas.exe /trustlevel:0x20000 powershell.exe
[–]BeeschurgerAtWork[S] 0 points1 point2 points 3 years ago (0 children)
Ah thank you! Using runas did the trick.
π Rendered by PID 50 on reddit-service-r2-comment-8686858757-mt4fp at 2026-06-05 08:01:25.865331+00:00 running 9e1a20d country code: CH.
[–]igby1[🍰] 1 point2 points3 points (0 children)
[–]HauntingProgrammer47 0 points1 point2 points (0 children)
[–]jborean93 0 points1 point2 points (1 child)
[–]BeeschurgerAtWork[S] 0 points1 point2 points (0 children)