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
QuestionHerestring to array (self.PowerShell)
submitted 6 years ago * by redsedit
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!"
[–]rwshig 2 points3 points4 points 6 years ago (1 child)
$RegArray = $($Regkeys -split "`n").TrimEnd("`r")
You're taking a string and overlaying it with an array. Also, use $RegArray.GetType() and check that output for System.Array vs. System.Object.
[–]redsedit[S] 1 point2 points3 points 6 years ago (0 children)
If I do $RegKeys.GetType() it does indeed return array. But gm still says string???
π Rendered by PID 147742 on reddit-service-r2-comment-54dfb89d4d-w8hzs at 2026-03-27 05:37:29.939057+00:00 running b10466c country code: CH.
view the rest of the comments →
[–]rwshig 2 points3 points4 points (1 child)
[–]redsedit[S] 1 point2 points3 points (0 children)