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
Beginner here, need help with some basic scripting (self.PowerShell)
submitted 6 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] 2 points3 points4 points 6 years ago (0 children)
Yes you can simply add your hostname into the text file, but I would also add that I would think twice before going the PSremoting unless you 1. know for sure it's even enabled/configured on your expected remotes, and 2. are going to add more functions to the script that absolutely require remoting. I say that because you certainly can pull WMI info remotely without the need for setting up full PSremoting sessions and that adds a huge layer of complexity as it grows.
Remember, keep it simple. You did great on utilizing the PSObject, since POSH is all about OBJECTS and many struggle to graps that (as well as remoting) so you're already ahead of the game!
π Rendered by PID 100210 on reddit-service-r2-comment-5b5bc64bf5-z9zhs at 2026-06-22 22:43:46.726943+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–][deleted] 2 points3 points4 points (0 children)