Working with PSDrives (HKLM)

by Lahru at 2013-03-21 11:44:35

So I am able to enter PS drive and see all of the available drives I can access. I see that HKLM is one of them. I switch to this drive by entering the command "CD HKLM:"
Now that I’m in this drive I am able to navigate it like any other windows directory, however I don’t seem to be able to view the specific values.
for instance I am currently at:
PS HKLM]
and I’d like to look at the value string of the WUServer value, but I don’t know how.

Yes I know, I’m going the long way around here, but for this instance I wish to.
I realize that there are ways to script the retrieval of the information I am looking for in the above example, but that is not what I’m looking to do per se.
I am looking to understand how I might be able to see these values/strings, when I’m already in the drive at the proper location.
If I know the registry item I’m looking for it sometimes can be handy to simply be able to go straight to it.
by poshoholic at 2013-03-21 12:21:03
You need to use Get-ItemProperty.
Get-ItemProperty -LiteralPath HKLM]
by Lahru at 2013-03-21 13:37:25
AH! So if I want to do that for the current location then I need to do:
Get-ItemProperty .</code>
When I try this it works and shows what I am seeking.
Thanks!