Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

getting all data about reg keys

$
0
0

I have run the following snippets of code.  Both return data about the path key.   But neither one returns the TYPE.  Is it REG_SZ or REG_EXPAND_SZ etc...  How do you get that data?

Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" -name "Path"

$a = Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" -name "Path"

$a | Get-Member *

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles