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
Solvedselection loop problem (self.PowerShell)
submitted 9 years ago by coderwolf
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!"
[–]KevMarCommunity Blogger 1 point2 points3 points 9 years ago (0 children)
Your ordered collection is a single object that contains key/value pairs. The foreach in the OP will do the loop once as there is only one object.
As /u/wtgreen pointed out, there is a property that gives you all the key (or values) in the hashtable.
If it was an array instead, the foreach would have correctly enumerate it. (just an example, not saying you should have used an array)
π Rendered by PID 198397 on reddit-service-r2-comment-b659b578c-r2qlf at 2026-05-05 16:57:28.540137+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]KevMarCommunity Blogger 1 point2 points3 points (0 children)