|
|
| Author |
Message |
ZBon42 Guest
|
Posted: Sat Jul 28, 2007 12:36 am Post subject: Environment variables in Server 2003 |
|
|
My Windows Server 2003 boot drive is filling up and reporting low disk
space.
I need to move the User Profiles folders to another partition. What is the
best way to do this? I assume I should change the %USERPROFILE% system
variable but I don't know how to do this...
Please help. |
|
| Back to top |
|
 |
|
|
Pegasus (MVP) Guest
|
Posted: Sat Jul 28, 2007 12:36 am Post subject: Re: Environment variables in Server 2003 |
|
|
"ZBon42" <nlx.bay@gmail.com> wrote in message
news:u6QtKHJ0HHA.3564@TK2MSFTNGP04.phx.gbl...
| Quote: | My Windows Server 2003 boot drive is filling up and reporting low disk
space.
I need to move the User Profiles folders to another partition. What is
the best way to do this? I assume I should change the %USERPROFILE%
system variable but I don't know how to do this...
Please help.
|
The environmental variable %UserProfile% reflects the registry
setting for the current user profile folder. Changing this variable
(as suggested by your Subject line) won't do any good. In fact
moving all user profiles to a different drive would most likely be
futile: On a server they contain only the adminstrators' profiles,
and they should consume very little disk space.
The normal way to free up space on your server's system drive
is to move your users' home shares and the various other shares
to a different drive. You should reserve the system drive for
Windows and for your applications. |
|
| Back to top |
|
 |
Jeremy Guest
|
Posted: Sat Jul 28, 2007 12:36 am Post subject: Re: Environment variables in Server 2003 |
|
|
It is easy on a new system and a bit of a pain on a system with a lot of
profiles.
The location of the root user profile location is in:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList in a value
called ProfilesDirectory
Then each user has a subkey of this key with their GUID. Inside each of
these keys is another value with the absolute path to their profile. I've
written a script that recurses through all of these and changes each one to
the new location, or you can do it manually. Then you just have to move the
files. I'd do a reboot prior to moving all the files just to make sure
their aren't any stuck profiles.
Let me know if you want the script.
Cheers,
Jeremy.
"ZBon42" <nlx.bay@gmail.com> wrote in message
news:u6QtKHJ0HHA.3564@TK2MSFTNGP04.phx.gbl...
| Quote: | My Windows Server 2003 boot drive is filling up and reporting low disk
space.
I need to move the User Profiles folders to another partition. What is
the best way to do this? I assume I should change the %USERPROFILE%
system variable but I don't know how to do this...
Please help.
|
|
|
| Back to top |
|
 |
Bruce Sanderson Guest
|
Posted: Mon Jul 30, 2007 1:56 am Post subject: Re: Environment variables in Server 2003 |
|
|
See the More Information, Entire Folder section of
http://support.microsoft.com/default.aspx?scid=kb%3ben-us%3b236621 for
additional information.
--
Bruce Sanderson MVP Printing
http://members.shaw.ca/bsanders
It is perfectly useless to know the right answer to the wrong question.
"ZBon42" <nlx.bay@gmail.com> wrote in message
news:u6QtKHJ0HHA.3564@TK2MSFTNGP04.phx.gbl...
| Quote: | My Windows Server 2003 boot drive is filling up and reporting low disk
space.
I need to move the User Profiles folders to another partition. What is
the best way to do this? I assume I should change the %USERPROFILE%
system variable but I don't know how to do this...
Please help.
|
|
|
| Back to top |
|
 |
|