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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Current User Logon Variable For Registry

Status
Not open for further replies.

dbrooks74

Programmer
Nov 13, 2001
105
US
I just got some instructions from a vendor which said to go into the registry and find a string that says something like C:\Document and Settings\name\my documents however he wanted me to do this under the current user registry key. So anytime I have a new user I would have to logon as them, get to this key, and change it to the appropriate person.

Can't I just user some kind of variable to do this once to the Current User file and do something like C:\Documents and Settings\%current user%\my documents? I would really like to simplify this for myself. Thanks for everyones help on this
 
Best way to do this is to use Regedt32, open the ntuser.dat (load hive) which is in the Default User folder. Change the key. Then Unload Hive.
When a new user logs on who does not have a profile, he will get the Default Users profile, which contains the proper key.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top