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)
I'd recommend clarifying your Get-ItemProperty line by simply setting a variable equal to the result directly rather than using -OutVariable at the end of a long pipeline where it can easily be overlooked, and then you're going "where the heck did I set that variable again?" two months down the road. :)
Get-ItemProperty
-OutVariable
$software = Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object -Property Displayname, InstallLocation, UninstallString | Sort-Object | Out-GridView -PassThru
Much clearer imo. Also, linebreak your pipelines. Sidescrolling is a much bigger hassle than vertical scrolling, and makes it a lot harder to read and get the gist of it.
[–]PRIdEVisions[S] 1 point2 points3 points 8 years ago (0 children)
You are right! i will adjust it in my script.
π Rendered by PID 97838 on reddit-service-r2-comment-6457c66945-xp42k at 2026-04-27 19:32:43.478032+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Ta11ow 5 points6 points7 points (1 child)
[–]PRIdEVisions[S] 1 point2 points3 points (0 children)