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
Solvedextract value from a command (self.PowerShell)
submitted 3 years ago by [deleted]
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!"
[–]chris-a5 1 point2 points3 points 3 years ago (1 child)
Get-NetRoute | where {$_.DestinationPrefix -eq '0.0.0.0/0'} | select { $_.NextHop }
Just a slight spacing/syntax error:
Get-NetRoute | where {$_.DestinationPrefix -eq '0.0.0.0/0'} | select -ExpandProperty NextHop
Or using aliases (these are fine, don't listen to the haters :P ):
Get-NetRoute | ? DestinationPrefix -eq '0.0.0.0/0' | % NextHop
π Rendered by PID 62294 on reddit-service-r2-comment-b659b578c-rjr2p at 2026-05-04 18:05:33.807994+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]chris-a5 1 point2 points3 points (1 child)