![]() |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
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 |
|
|
|
#2 |
|
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 > |
|
|
|
#3 |
|
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 > > |
|
![]() |
| 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? |