Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8318803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:06:09+00:00 2026-06-08T22:06:09+00:00

I am writing a c# application . As part of my application, I need

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T22:06:11+00:00Added an answer on June 8, 2026 at 10:06 pm

    As part of my application, I need to read the users’ profiles.

    Then you need to redesign your application. What you’re asking for is not possible.

    From Raymond Chen’s blog post, “Beware of roaming user profiles”:

    [Y]ou cannot just cruise through the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList registry key expecting to find all the user profiles and possibly even modify them, because the copy of the user profile on the local computer might not be the authoritative one.

    Anything you see on your local machine relating to other users’ profiles — whether under HKEY_USERS, or in their profile directories under C:\Users — is just a local cache from the last time they logged in on that machine. The real data, the up-to-date data, is stored on a domain controller somewhere.

    You can’t rely on other users’ locally-stored profile data for anything at all. You’re better off pretending it’s not even there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently writing an application that works with modules. The module part is all
Part of an application I'm writing allows for users to upload images which I
I am writing an application that converts an ajax xml response into html using
Ok, background to the problem: I'm writing a little application that looks at the
I need to make some UI part in javascript for android application for that
I'm writing an application that doesn't necessarily need scaling abilities as it won't be
I have a multi-threaded application that creates 48 threads that all need to access
I'm writing a C# application, and I need part of it to be in
I have a web-application. As part of this, I need users of the app
I am writing a little application in android which would have a server part

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.