Registry key names - by Shay Levi

Status : 


Sign in
to vote
ID 806568 Comments
Status Active Workarounds
Type Bug Repros 0
Opened 10/25/2013 5:52:16 AM
Access Restriction Public


When you list a provider and ask for the Name property you get back just the name of the objects and it works well across all providers but the Registry. With the Registry provider you get back the FullName (path) of the registry key ( to get the name one must refer to the PSChildName property).

PS> dir HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion | fl name

Name : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AccountPicture
Name : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo
Name : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Management
Sign in to post a comment.