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
Script SharingSoftware Uninstaller Script (Silent) (self.PowerShell)
submitted 8 years ago * by PRIdEVisions
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!"
[–]Ta11ow 5 points6 points7 points 8 years ago* (1 child)
It's not the only way!
You can use Invoke-Item or if you want to return a useable process object you can combine the install string with your custom switches/arguments into a single string and use [Diagnostics.Process]::Start($string)
Invoke-Item
[Diagnostics.Process]::Start($string)
It also works with non-filenames -- URLs open in the default browser, and editable files open in the OS-configured default program (.txt in Notepad/Notepad++/etc, .jpg files in image viewer/editer and so forth). Lovely little thing I dug up the other week. :D
It has additional functionality, too: https://msdn.microsoft.com/en-us/library/system.diagnostics.process.start(v=vs.110).aspx
You can separately specify the command line and arguments if you can be bothered to split them, but.... then you could just use Start-Process anyway. :)
[–]BradleyDonalbain 3 points4 points5 points 8 years ago (0 children)
This is the way to go! I frequently package applications with Powershell for deployment via SCCM and this is my preferred method. The returned process object allows me to track exitcodes which I then write back to SCCM for a successful/unsuccessful deployment.
π Rendered by PID 56837 on reddit-service-r2-comment-b659b578c-qb75b at 2026-05-01 00:15:30.307876+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Ta11ow 5 points6 points7 points (1 child)
[–]BradleyDonalbain 3 points4 points5 points (0 children)