PC Review


Reply
Thread Tools Rate Thread

Where and when are these 2 system environment variables set?

 
 
=?Utf-8?B?bmFqZXZp?=
Guest
Posts: n/a
 
      11th Jun 2007
%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
 
 
 
 
=?Utf-8?B?Sm9obiBIZW5zbGV5?=
Guest
Posts: n/a
 
      13th Jun 2007
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
www.resqware.com


"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
 
=?Utf-8?B?bmFqZXZp?=
Guest
Posts: n/a
 
      13th Jun 2007
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
> www.resqware.com
>
>
> "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
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System Environment Variables =?Utf-8?B?YmRpY2tlcnQ=?= Microsoft Excel Misc 1 8th Oct 2006 08:40 PM
System Environment Variables =?Utf-8?B?YmRpY2tlcnQ=?= Microsoft Excel Misc 9 7th Oct 2006 09:34 PM
System Environment Variables =?Utf-8?B?cGFnYXRlcw==?= Microsoft C# .NET 1 11th Apr 2006 06:56 PM
WinPE and System environment variables Ravi Windows XP Setup 6 23rd May 2005 04:14 PM
User Environment variables overriden by system env variables Bonny Windows XP Setup 0 11th Jul 2003 06:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:36 AM.