Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get User names from Registry 1

Status
Not open for further replies.

Doteco

Programmer
Jan 9, 2005
16
AU
I'm wanting to populate a list with all of the User names on a PC. Have worked out how to get this from:-

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Explorer/DocFolderPaths

but this only works if each user has logged in subsequent to being added as a user. Can't find where in the registry new user information is stored. Any clues?

 
What is your target OS? You're just looking for people that are added as a local user on the specific box?
 
I'm using XP but the final application may need to be compatible with Win98, ME etc. If I can get it working on XP for starters that'd be good. Yes, I only need it to find local users on a standalone PC.

Thanks, Doug.
 
Thanks - had a quick look at it and will give it a go.

Appreciate your help. Doug
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top