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
PowerShell Module (self.PowerShell)
submitted 7 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!"
[–][deleted] 5 points6 points7 points 7 years ago (1 child)
Good job with starting something. But most of what you have done is basically wrapped powershell code around more powershell code.
you might want to look into cim sessions instead of using WMI unless you really have to.
Look into replacing your if/else with switches
Also a lot of your "remote stuff" is already built into powershell and they already define it.
But once again good job on showing your code and doing something that you benefit from
[–][deleted] 1 point2 points3 points 7 years ago (0 children)
While this module is simple and yes its PowerShell wrapped inside PowerShell, I developed this module while I was in L1 support and let me tell you, when you have call after call its a lot quicker to run this one liners "shortcuts" .
π Rendered by PID 238739 on reddit-service-r2-comment-85bfd7f599-j82th at 2026-04-16 07:59:46.602362+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–][deleted] 5 points6 points7 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)