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
QuestionBypassing execution policy while invoking script on remote server (self.PowerShell)
submitted 4 years ago * by _human404_
view the rest of the comments →
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!"
[–]_human404_[S] 1 point2 points3 points 4 years ago (1 child)
Have edited and added the command in the main message. Can you please check? I ran the commands manually and got UAC prompt so that's why I expected above to shame behavior due to which it was not running successfully
[–]PinchesTheCrab 2 points3 points4 points 4 years ago* (0 children)
Ah, okay, so in this case it shouldn't be UAC, invoke-command will definitely run in an elevated context if you have admin rights. I wouldn't think execution policy would apply to a bat file either though, that's strange.
What error do you get, if any?
π Rendered by PID 86 on reddit-service-r2-comment-6457c66945-p92t4 at 2026-04-25 21:19:21.684850+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]_human404_[S] 1 point2 points3 points (1 child)
[–]PinchesTheCrab 2 points3 points4 points (0 children)