Take the Winlogon registry section, I would like PowerShell to display the Data value for
DefaultUserName.
This is as far as I have got:
Stage 1
get-itemproperty -path "hklm:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\"
Stage 2
I can append:
-Name DefaultUserName
But this won’t return a value.
Also other Names, despite being visible in regedit, don’t show in PowerShell, for example AutoAdminLogon.
Question: how can make PowerShell display what I can see with regedit?
I tried the very same commands on another machine, they worked perfectly, as expected. Thus my original machine must have a faulty registry, or at the least, weird permissions.