TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Windows XP

Notices

Where and when are these 2 system environment variables set?

Windows XP


Reply
 
Thread Tools Display Modes
Old 17-08-2007, 02:43 PM   #1
najevi
Guest
 
Posts: n/a
Where and when are these 2 system environment variables set?

%AllUsersProfile%
%UserProfile%

Is there a registry hive where these are set?
Is there a .bat file or a .ini file where they are set?

I assume the AllUsersProfile is set some time during windows startup and
imagine that UserProfile must be set after a user logs in but can some one
explain exactly when these variables are set, and how/where they are set?

OS = Win XP Pro, SP2

  Reply With Quote
Old 17-08-2007, 02:45 PM   #2
John Hensley
Guest
 
Posts: n/a
RE: Where and when are these 2 system environment variables set?

These values come from the registry and are set by the Windows logon manager.
They are read from the ProfileList key in the registry under:

HKEY_LOCAL_MACHINE,"\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

The USERPROFILE information is take from the AllUsersProfile key under
ProfileList.

The USERNAME information ist taken from the current user's profile key which
has the format of S-1-5-21-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxx where x
represents a decimal number.

--
John Hensley



"najevi" wrote:

> %AllUsersProfile%
> %UserProfile%
>
> Is there a registry hive where these are set?
> Is there a .bat file or a .ini file where they are set?
>
> I assume the AllUsersProfile is set some time during windows startup and
> imagine that UserProfile must be set after a user logs in but can some one
> explain exactly when these variables are set, and how/where they are set?
>
> OS = Win XP Pro, SP2
>

  Reply With Quote
Old 17-08-2007, 02:45 PM   #3
najevi
Guest
 
Posts: n/a
RE: Where and when are these 2 system environment variables set?

I stumbled across the following only minutes ago and returned to share my
discovery. Finding that your reply confirms the location boosted my
confidence.

Thank you.

%AllUsersProfile% = concatenation of
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\ProfileList\ProfilesDirectory
and
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\ProfileList\AllUsersProfile

%UserProfile% =
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\ProfileList\S-1-5-21-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-xxxx\ProfileImagePath


"John Hensley" wrote:

> These values come from the registry and are set by the Windows logon manager.
> They are read from the ProfileList key in the registry under:
>
> HKEY_LOCAL_MACHINE,"\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
>
> The USERPROFILE information is take from the AllUsersProfile key under
> ProfileList.
>
> The USERNAME information ist taken from the current user's profile key which
> has the format of S-1-5-21-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxx where x
> represents a decimal number.
>
> --
> John Hensley
>
>
>
> "najevi" wrote:
>
> > %AllUsersProfile%
> > %UserProfile%
> >
> > Is there a registry hive where these are set?
> > Is there a .bat file or a .ini file where they are set?
> >
> > I assume the AllUsersProfile is set some time during windows startup and
> > imagine that UserProfile must be set after a user logs in but can some one
> > explain exactly when these variables are set, and how/where they are set?
> >
> > OS = Win XP Pro, SP2
> >

  Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is possible to have alternate TEMP environment variables? Juan I. Cahis Windows Vista All 10 02-09-2007 09:29 AM
Environment variables in Server 2003 ZBon42 Windows Server 2003 20 28-08-2007 11:13 AM
Environment variables in Server 2003 ZBon42 Windows Server 2003 2 28-08-2007 11:06 AM
4 gb system memory and windows recovery environment Jonathan Windows Vista All 3 20-08-2007 04:13 AM
The system could not find the environment option that was entered Curt W Windows Vista All 4 19-08-2007 09:28 PM


< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 04:36 PM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional