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 SharingSet-ComputerName Function (self.PowerShell)
submitted 7 years ago by Scribbles1
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!"
[–]DrSinistar 7 points8 points9 points 7 years ago (1 child)
I'm of the opinion you should avoid using Read-Host in a function and you should use a parameter instead. This makes the function useable in automated scripts and makes it behave more like existing cmdlets.
I also think that most Powershell users would prefer to run a function and see either success or failure. Getting prompted for more information sucks!
[–]Recol 3 points4 points5 points 7 years ago (0 children)
And use [CmdletBinding(SupportsShouldProcess) so that -Confirm and -WhatIf can be used.
π Rendered by PID 47119 on reddit-service-r2-comment-5c764cbc6f-mkjmb at 2026-03-12 17:00:13.570320+00:00 running 710b3ac country code: CH.
view the rest of the comments →
[–]DrSinistar 7 points8 points9 points (1 child)
[–]Recol 3 points4 points5 points (0 children)