I wonder if there is a way to find a local user\'s registry key in HKEY_USERS if you know the login-name of that user on the local machine. I want to programmatically add stuff
This does it for me
ls 'hklm:software/microsoft/windows nt/currentversion/profilelist' | ? { $_.getvalue('profileimagepath') -match 'Steven' } | % pschildname
Example