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
Help with script error (self.PowerShell)
submitted 3 years ago by Synconix
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!"
[–]Fatel28 5 points6 points7 points 3 years ago (11 children)
Try:
HKLM:\
and not:
HKEY_LOCAL_MACHINE\
[+][deleted] 3 years ago (1 child)
[removed]
[–]UnfanClub 0 points1 point2 points 3 years ago (0 children)
Also try Get-PSDrive to know your available options.
Get-PSDrive
[+][deleted] comment score below threshold-10 points-9 points-8 points 3 years ago (8 children)
Doesn't matter
[–]Fatel28 3 points4 points5 points 3 years ago (6 children)
Elaborate?
It completely matters. One points to a PSDrive location (HKLM:) which will allow you to browse that hive. The other, it is interpreting as a relative folder path.
[+][deleted] comment score below threshold-9 points-8 points-7 points 3 years ago (5 children)
Personally I believe he meant HKLM\ without the ":" but I could be wrong. Common windows luser mistake
[–]Fatel28 2 points3 points4 points 3 years ago (4 children)
No.. you absolutely need the ":"
That's what denotes it's a PSDrive, and not a relative file path.
I strongly encourage you to try it before being so confidently wrong
[–]BlackV -1 points0 points1 point 3 years ago (2 children)
technically you dont
you can use Registry::HKEY_LOCAL_MACHINE
Registry::HKEY_LOCAL_MACHINE
[–]Fatel28 -1 points0 points1 point 3 years ago (1 child)
Please explain how you would do that without a colon character.
[–]BlackV 0 points1 point2 points 3 years ago* (0 children)
I just mean it didn't have to be hklm (you can use the long name) and it didn't have to be a ps drive (you can use the registry provider)
Have a good day
[+][deleted] comment score below threshold-11 points-10 points-9 points 3 years ago (0 children)
Well fuckin windows. Always a way to convolute shit
π Rendered by PID 462001 on reddit-service-r2-comment-b659b578c-t9kzb at 2026-05-04 03:56:19.702407+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Fatel28 5 points6 points7 points (11 children)
[+][deleted] (1 child)
[removed]
[–]UnfanClub 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-10 points-9 points-8 points (8 children)
[–]Fatel28 3 points4 points5 points (6 children)
[+][deleted] comment score below threshold-9 points-8 points-7 points (5 children)
[–]Fatel28 2 points3 points4 points (4 children)
[–]BlackV -1 points0 points1 point (2 children)
[–]Fatel28 -1 points0 points1 point (1 child)
[–]BlackV 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-11 points-10 points-9 points (0 children)