Wednesday, March 3, 2010

Programmer - How to get PowerShell to display registry Data values

Programmer Question

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?



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails