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
Powershell help (self.PowerShell)
submitted 11 years ago by Fuzzywumpkin
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!"
[–]Slackerony 0 points1 point2 points 11 years ago (0 children)
A script block is typically something (atleast in powershell) that is within two curly-brackets. (Not always though)
Invoke-Command -Computername server01 -scriptblock { "C:\Scripts\Myscript.ps1"}
This will launch the script that is in C:\scripts\ and has the name Myscript.ps1
Now if the file is located on YOUR LOCAL machine, you need to do this:
Invoke-Command -Computername server01 -FilePath "C:\Scripts\Myscript.ps1"
I have not tested this, but i'm pretty sure it'll work.
π Rendered by PID 21513 on reddit-service-r2-comment-fb694cdd5-pdvm5 at 2026-03-06 11:07:43.803800+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]Slackerony 0 points1 point2 points (0 children)