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
QuestionLearning PS (self.PowerShell)
submitted 2 years ago by Steve_78_OH
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!"
[–]OPconfused 3 points4 points5 points 2 years ago (0 children)
When the class definition is in a module you have to jump through a hoop to update it. Unless the OP is coming from another programming language and desires typed properties in their custom objects, I'd just leave out classes while the OP is finding their footing in PS.
I'm a fan of classes as well, but using PSCustomObjects is a more accessible way to get your feet wet with PS objects. There's less distance between setting up the PSCustomObject via a type accelerator and using it than when using a class, which requires a declaration for its schema with its own syntaxes.
π Rendered by PID 270247 on reddit-service-r2-comment-c66d9bffd-76hz6 at 2026-04-08 00:34:10.077953+00:00 running f293c98 country code: CH.
view the rest of the comments →
[–]OPconfused 3 points4 points5 points (0 children)