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?