I am writing a c# application.
As part of my application, I need to read the users' profiles.
In order to get all the users, I am using Registry.Users.GetSubKey()
.
The problem is that on Windows 8 the HKEY_USERS
contains only logged in users! (when there is 2 users logged in I wiil see 2 users under HKEY_USERS
, but if one of the users will sign out, then there will be only 1 user under HKEY_USERS
)
As a result, I get the profiles only for logged in users.
I tried to search the entire registry to find where the data is saved, but I can't find this information anywhere.... it seems like the info is gone when the user logs out.
Is it by design, or a bug?
Where the data is saved - it must be in the registry, but I can't find it...
Could it be something in the permissions? Maybe the info is there but it's hidden when the user is not logged in? Is there a flag or something I can use to read the profile for non logged in users?