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 *