A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Changing USERPROFILE and ALLUSERSPROFILE



 
 
Thread Tools Display Modes
  #1  
Old February 25th 12, 05:35 PM posted to microsoft.public.windowsxp.general
rmhartman
external usenet poster
 
Posts: 6
Default Changing USERPROFILE and ALLUSERSPROFILE

I would like to move my user folders off the system partition. One
way to do this would be to move them and then use JUNCTION to create
symbolic links to their new location from their old location in "C:
\Documents and Settings". However ... XP has two environment
variables USERPROFILE and ALLUSERSPROFILE, which are what all the
special folders hang off from. What I can not find is where/how
USERPROFILE and/or ALLUSERSPROFILE are ever set. If I could change
them from "C:\Documents and Settings\..." to "E:\Users\..." it should
take care of everything, shouldn't it? But where do these environment
variables get their value pointing to "C:\Documents and Settings" ???
Ads
  #2  
Old February 25th 12, 07:13 PM posted to microsoft.public.windowsxp.general
David H. Lipman
external usenet poster
 
Posts: 4,185
Default Changing USERPROFILE and ALLUSERSPROFILE

From: "rmhartman"

I would like to move my user folders off the system partition. One
way to do this would be to move them and then use JUNCTION to create
symbolic links to their new location from their old location in "C:
\Documents and Settings". However ... XP has two environment
variables USERPROFILE and ALLUSERSPROFILE, which are what all the
special folders hang off from. What I can not find is where/how
USERPROFILE and/or ALLUSERSPROFILE are ever set. If I could change
them from "C:\Documents and Settings\..." to "E:\Users\..." it should
take care of everything, shouldn't it? But where do these environment
variables get their value pointing to "C:\Documents and Settings" ???


They are stored in..

HKCU\Software\Microsoft\Windows\CurrentVersion\Exp lorer\Shell Folders

--
Dave
Multi-AV Scanning Tool - http://multi-av.thespykiller.co.uk
http://www.pctipp.ch/downloads/dl/35905.asp
  #3  
Old February 25th 12, 08:07 PM posted to microsoft.public.windowsxp.general
rmhartman
external usenet poster
 
Posts: 6
Default Changing USERPROFILE and ALLUSERSPROFILE

Not quite. What is there is the explicit path to each special folder,
e.g. "AppData=C:\documents and settings\hartman\AppData". The "c:
\Documents and Settings\hartman" part of that is _from_ the
environment variable USERPROFILE. In HKCU\Software\Microsoft\Windows
\CurrentVersion\Explorer\Shell Folders, there is a setting where the
value is "AppData=%USERPROFILE%\AppData" that gets expanded out and
then stored in the HKCU\...\Shell Folders key.

I want to be able to alter the value in "USERPROFILE" and move the
whole special folders root location.



On Feb 25, 11:13*am, "David H. Lipman"
wrote:
From: "rmhartman"

I would like to move my user folders off the system partition. *One
way to do this would be to move them and then use JUNCTION to create
symbolic links to their new location from their old location in "C:
\Documents and Settings". *However ... XP has two environment
variables USERPROFILE and ALLUSERSPROFILE, which are what all the
special folders hang off from. *What I can not find is where/how
USERPROFILE and/or ALLUSERSPROFILE are ever set. *If I could change
them from "C:\Documents and Settings\..." to "E:\Users\..." it should
take care of everything, shouldn't it? *But where do these environment
variables get their value pointing to "C:\Documents and Settings" ???


They are stored in..

HKCU\Software\Microsoft\Windows\CurrentVersion\Exp lorer\Shell Folders

--
Dave
Multi-AV Scanning Tool -http://multi-av.thespykiller.co.ukhttp://www.pctipp.ch/downloads/dl/35905.asp


  #4  
Old February 25th 12, 08:14 PM posted to microsoft.public.windowsxp.general
rmhartman
external usenet poster
 
Posts: 6
Default Changing USERPROFILE and ALLUSERSPROFILE

Correction below.

On Feb 25, 12:07*pm, rmhartman wrote:
Not quite. *What is there is the explicit path to each special folder,
e.g. "AppData=C:\documents and settings\hartman\AppData". * *The "c:
\Documents and Settings\hartman" part of that is _from_ the
environment variable USERPROFILE. *In HKCU\Software\Microsoft\Windows
\CurrentVersion\Explorer\Shell Folders, there is a setting where the


Excuse me please. That should be "User Shell Folders" not just "Shell
Folders"

value is "AppData=%USERPROFILE%\AppData" that gets expanded out and
then stored in the HKCU\...\Shell Folders key.

I want to be able to alter the value in "USERPROFILE" and move the
whole special folders root location.

On Feb 25, 11:13*am, "David H. Lipman"
wrote:







From: "rmhartman"


I would like to move my user folders off the system partition. *One
way to do this would be to move them and then use JUNCTION to create
symbolic links to their new location from their old location in "C:
\Documents and Settings". *However ... XP has two environment
variables USERPROFILE and ALLUSERSPROFILE, which are what all the
special folders hang off from. *What I can not find is where/how
USERPROFILE and/or ALLUSERSPROFILE are ever set. *If I could change
them from "C:\Documents and Settings\..." to "E:\Users\..." it should
take care of everything, shouldn't it? *But where do these environment
variables get their value pointing to "C:\Documents and Settings" ???


They are stored in..


HKCU\Software\Microsoft\Windows\CurrentVersion\Exp lorer\Shell Folders


--
Dave
Multi-AV Scanning Tool -http://multi-av.thespykiller.co.ukhttp://www.pctipp.ch/downloads/dl/3...


  #5  
Old February 27th 12, 02:00 PM posted to microsoft.public.windowsxp.general
Zaphod Beeblebrox
external usenet poster
 
Posts: 868
Default Changing USERPROFILE and ALLUSERSPROFILE

In article 03c08bcc-0b23-4a75-94c7-b64e2de92e33
@p13g2000yqd.googlegroups.com, says...

On Feb 25, 11:13*am, "David H. Lipman"
wrote:
From: "rmhartman"

I would like to move my user folders off the system partition. *One
way to do this would be to move them and then use JUNCTION to create
symbolic links to their new location from their old location in "C:
\Documents and Settings". *However ... XP has two environment
variables USERPROFILE and ALLUSERSPROFILE, which are what all the
special folders hang off from. *What I can not find is where/how
USERPROFILE and/or ALLUSERSPROFILE are ever set. *If I could change
them from "C:\Documents and Settings\..." to "E:\Users\..." it should
take care of everything, shouldn't it? *But where do these environment
variables get their value pointing to "C:\Documents and Settings" ???


They are stored in..

HKCU\Software\Microsoft\Windows\CurrentVersion\Exp lorer\Shell Folders

Not quite. What is there is the explicit path to each special folder,
e.g. "AppData=C:\documents and settings\hartman\AppData". The "c:
\Documents and Settings\hartman" part of that is _from_ the
environment variable USERPROFILE. In HKCU\Software\Microsoft\Windows
\CurrentVersion\Explorer\Shell Folders, there is a setting where the
value is "AppData=%USERPROFILE%\AppData" that gets expanded out and
then stored in the HKCU\...\Shell Folders key.

I want to be able to alter the value in "USERPROFILE" and move the
whole special folders root location.

A quick search of the registry shows that 'HKCU\Volitile Environment'
contains a USERPROFILE key. Given the name of the key, it wouldn't
surprise me that any changes would be lost on reboot, but I suppose it
is worth a shot.

--
Zaphod

The secret of flying is to hurl yourself to the ground, and miss.
  #6  
Old February 27th 12, 03:14 PM posted to microsoft.public.windowsxp.general
Tecknomage[_2_]
external usenet poster
 
Posts: 61
Default Changing USERPROFILE and ALLUSERSPROFILE

On Sat, 25 Feb 2012 09:35:19 -0800 (PST), rmhartman
wrote:

I would like to move my user folders off the system partition. One
way to do this would be to move them and then use JUNCTION to create
symbolic links to their new location from their old location in "C:
\Documents and Settings". However ... XP has two environment
variables USERPROFILE and ALLUSERSPROFILE, which are what all the
special folders hang off from. What I can not find is where/how
USERPROFILE and/or ALLUSERSPROFILE are ever set. If I could change
them from "C:\Documents and Settings\..." to "E:\Users\..." it should
take care of everything, shouldn't it? But where do these environment
variables get their value pointing to "C:\Documents and Settings" ???



I DO NOT KNOW IF THIS WOULD WORK for USERPROFILE, but...

Since at home I have a single-user WinXP desktop, I wanted "My
Documents" on my D: drive (D: Apps).

I know you can drag-drop a user "My Documents" to another drive, but
that just makes links, and you end up with "Ed's Documents" and "Ed's
Pictures" on the other drive (which I did NOT want).


NOW: The question becomes would the drag-drop [Documents and
Settings] work? If so what would happen?


Need I say, backup your C: FIRST.




NOTE: I did find a way to get "D:\My Documents" that does NOT use
drag-drop.



--
=========== Tecknomage ===========
Computer Systems Specialist
ComputerHelpForum.org Staff Member
IT Technician
San Diego, CA
  #7  
Old February 27th 12, 04:21 PM posted to microsoft.public.windowsxp.general
John Wunderlich
external usenet poster
 
Posts: 1,466
Default Changing USERPROFILE and ALLUSERSPROFILE

rmhartman wrote in

m:

I would like to move my user folders off the system partition.
One way to do this would be to move them and then use JUNCTION to
create symbolic links to their new location from their old
location in "C: \Documents and Settings". However ... XP has two
environment variables USERPROFILE and ALLUSERSPROFILE, which are
what all the special folders hang off from. What I can not find
is where/how USERPROFILE and/or ALLUSERSPROFILE are ever set. If
I could change them from "C:\Documents and Settings\..." to
"E:\Users\..." it should take care of everything, shouldn't it?
But where do these environment variables get their value pointing
to "C:\Documents and Settings" ???


I believe the procedure for accomplishing this for Windows XP is in the
following Microsoft KB article:

"An error message informs you that you cannot move or rename the
Documents and Settings folder"
http://support.microsoft.com/kb/314843

HTH,
JW
  #8  
Old February 27th 12, 08:29 PM posted to microsoft.public.windowsxp.general
rmhartman
external usenet poster
 
Posts: 6
Default Changing USERPROFILE and ALLUSERSPROFILE

On Feb 27, 6:00*am, Zaphod Beeblebrox
wrote:
In article 03c08bcc-0b23-4a75-94c7-b64e2de92e33
@p13g2000yqd.googlegroups.com, says...









On Feb 25, 11:13*am, "David H. Lipman"
wrote:
From: "rmhartman"


I would like to move my user folders off the system partition. *One
way to do this would be to move them and then use JUNCTION to create
symbolic links to their new location from their old location in "C:
\Documents and Settings". *However ... XP has two environment
variables USERPROFILE and ALLUSERSPROFILE, which are what all the
special folders hang off from. *What I can not find is where/how
USERPROFILE and/or ALLUSERSPROFILE are ever set. *If I could change
them from "C:\Documents and Settings\..." to "E:\Users\..." it should
take care of everything, shouldn't it? *But where do these environment
variables get their value pointing to "C:\Documents and Settings" ???


They are stored in..


HKCU\Software\Microsoft\Windows\CurrentVersion\Exp lorer\Shell Folders


Not quite. *What is there is the explicit path to each special folder,
e.g. "AppData=C:\documents and settings\hartman\AppData". * *The "c:
\Documents and Settings\hartman" part of that is _from_ the
environment variable USERPROFILE. *In HKCU\Software\Microsoft\Windows
\CurrentVersion\Explorer\Shell Folders, there is a setting where the
value is "AppData=%USERPROFILE%\AppData" that gets expanded out and
then stored in the HKCU\...\Shell Folders key.


I want to be able to alter the value in "USERPROFILE" and move the
whole special folders root location.


A quick search of the registry shows that 'HKCU\Volitile Environment'
contains a USERPROFILE key. *Given the name of the key, it wouldn't
surprise me that any changes would be lost on reboot, but I suppose it
is worth a shot.

--
Zaphod

The secret of flying is to hurl yourself to the ground, and miss.



I will take a look. Although I wonder why my searches of the registry
did not turn that one up ... I guess the question is whether this is
the master, from which the rest depends or whether this is merely
recording the results after startup. Thanks for the lead.

  #9  
Old February 27th 12, 08:32 PM posted to microsoft.public.windowsxp.general
rmhartman
external usenet poster
 
Posts: 6
Default Changing USERPROFILE and ALLUSERSPROFILE

On Feb 27, 7:14*am, Tecknomage wrote:
On Sat, 25 Feb 2012 09:35:19 -0800 (PST), rmhartman

wrote:
I would like to move my user folders off the system partition. *One
way to do this would be to move them and then use JUNCTION to create
symbolic links to their new location from their old location in "C:
\Documents and Settings". *However ... XP has two environment
variables USERPROFILE and ALLUSERSPROFILE, which are what all the
special folders hang off from. *What I can not find is where/how
USERPROFILE and/or ALLUSERSPROFILE are ever set. *If I could change
them from "C:\Documents and Settings\..." to "E:\Users\..." it should
take care of everything, shouldn't it? *But where do these environment
variables get their value pointing to "C:\Documents and Settings" ???


I DO NOT KNOW IF THIS WOULD WORK for USERPROFILE, but...

Since at home I have a single-user WinXP desktop, I wanted "My
Documents" on my D: drive (D: Apps).

I know you can drag-drop a user "My Documents" to another drive, but
that just makes links, and you end up with "Ed's Documents" and "Ed's
Pictures" on the other drive (which I did NOT want).

NOW: *The question becomes would the drag-drop [Documents and
Settings] work? *If so what would happen?

Need I say, backup your C: FIRST.

NOTE: *I did find a way to get "D:\My Documents" that does NOT use
drag-drop.

--
=========== Tecknomage ===========
* *Computer Systems Specialist
ComputerHelpForum.org Staff Member
* * * * * *IT Technician
* * * * * *San Diego, CA


If it were just "My Documents" there is a documented way to accomplish
this. However, that is only a little bit of the user data. Much of
it is stored under "c:\documents and settings\{username}\Application
Data" and "c:\documents and settings\{username}\Local Settings". I
want to move _all_ of the user data to another drive.



  #10  
Old February 27th 12, 08:36 PM posted to microsoft.public.windowsxp.general
rmhartman
external usenet poster
 
Posts: 6
Default Changing USERPROFILE and ALLUSERSPROFILE

On Feb 27, 8:21*am, John Wunderlich wrote:
rmhartman wrote
m:

I would like to move my user folders off the system partition.
One way to do this would be to move them and then use JUNCTION to
create symbolic links to their new location from their old
location in "C: \Documents and Settings". *However ... XP has two
environment variables USERPROFILE and ALLUSERSPROFILE, which are
what all the special folders hang off from. *What I can not find
is where/how USERPROFILE and/or ALLUSERSPROFILE are ever set. *If
I could change them from "C:\Documents and Settings\..." to
"E:\Users\..." it should take care of everything, shouldn't it?
But where do these environment variables get their value pointing
to "C:\Documents and Settings" ???


I believe the procedure for accomplishing this for Windows XP is in the
following Microsoft KB article:

"An error message informs you that you cannot move or rename the
Documents and Settings folder"
* http://support.microsoft.com/kb/314843

HTH,
* JW


Ok, so you can only really do what I want during installation, you
can't do it afterwards. Yes, they do give a procedure that includes
changing all instances of "C:\Documents and Settings" in the registry
but that approach is a little scary. Also ... what happens when you
create the next new user? Will they end up in the old location or the
new one?


  #11  
Old March 2nd 12, 06:40 AM posted to microsoft.public.windowsxp.general
John Wunderlich
external usenet poster
 
Posts: 1,466
Default Changing USERPROFILE and ALLUSERSPROFILE

rmhartman wrote in

m:

On Feb 27, 8:21*am, John Wunderlich wrote:
rmhartman wrote
innews:f8f4fc11-cc6f-456a-8e78-c378
m:

I would like to move my user folders off the system partition.
One way to do this would be to move them and then use JUNCTION
to create symbolic links to their new location from their old
location in "C: \Documents and Settings". *However ... XP has
two environment variables USERPROFILE and ALLUSERSPROFILE, which
are what all the special folders hang off from. *What I can not
find is where/how USERPROFILE and/or ALLUSERSPROFILE are ever
set. *If I could change them from "C:\Documents and
Settings\..." to "E:\Users\..." it should take care of
everything, shouldn't it? But where do these environment
variables get their value pointing to "C:\Documents and
Settings" ???


I believe the procedure for accomplishing this for Windows XP is
in the following Microsoft KB article:

"An error message informs you that you cannot move or rename the
Documents and Settings folder"
* http://support.microsoft.com/kb/314843

HTH,
* JW


Ok, so you can only really do what I want during installation, you
can't do it afterwards. Yes, they do give a procedure that
includes changing all instances of "C:\Documents and Settings" in
the registry but that approach is a little scary. Also ... what
happens when you create the next new user? Will they end up in
the old location or the new one?



Yes. Unsupported by Microsoft and a little risky but none-the-less
it has been posted on a Microsoft Support page for many years. Not
sure about "new users". That was not a requirement in the original
post.

-- JW.


  #12  
Old March 2nd 12, 12:46 PM posted to microsoft.public.windowsxp.general
Zaphod Beeblebrox
external usenet poster
 
Posts: 868
Default Changing USERPROFILE and ALLUSERSPROFILE

In article 73c3ee4a-78ef-4984-967a-
, says...

On Feb 27, 8:21*am, John Wunderlich wrote:
rmhartman wrote
m:

I would like to move my user folders off the system partition.
One way to do this would be to move them and then use JUNCTION to
create symbolic links to their new location from their old
location in "C: \Documents and Settings". *However ... XP has two
environment variables USERPROFILE and ALLUSERSPROFILE, which are
what all the special folders hang off from. *What I can not find
is where/how USERPROFILE and/or ALLUSERSPROFILE are ever set. *If
I could change them from "C:\Documents and Settings\..." to
"E:\Users\..." it should take care of everything, shouldn't it?
But where do these environment variables get their value pointing
to "C:\Documents and Settings" ???


I believe the procedure for accomplishing this for Windows XP is in the
following Microsoft KB article:

"An error message informs you that you cannot move or rename the
Documents and Settings folder"
* http://support.microsoft.com/kb/314843

HTH,
* JW


Ok, so you can only really do what I want during installation, you
can't do it afterwards. Yes, they do give a procedure that includes
changing all instances of "C:\Documents and Settings" in the registry
but that approach is a little scary. Also ... what happens when you
create the next new user? Will they end up in the old location or the
new one?


If you load "c:\Documents and Settings\Default User\NTUser.Dat" into
the registry editor and change all instances of "C:\Documents and
Settings" then save it back out, all new users will get the new
location as well.

Hope this helps.

--
Zaphod

"The best Bang since the Big One" - Eccentrica Gallumbits
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 09:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.