Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


November 20, 2000

How do I change the directory in which the system stores profiles?

RSS
Subscribe to Windows IT Pro | See More User Management and Profiles Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A. Windows NT 4.0 and earlier versions of NT store profiles in the %systemroot%\Profiles folder. Windows 2000 stores profiles in %systemdrive%\Documents and Settings, but the OS lets you specify a different location. To change the location, take the following steps:

  1. Create a new folder to host the profiles.
  2. Copy all existing profiles from the %systemdrive%\Documents and Settings folder to the folder you just created. (Note: If you're copying from NTFS to NTFS, use the XCOPY command with the /o switch to maintain any ACLs on the files.)
  3. Launch regedit.exe, and go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList.
  4. Double-click ProfilesDirectory.
  5. Enter the path to the new folder, and click OK.

You can change the profile Win2K uses for default users by modifying the DefaultUserProfile string value, and you can change the profile Win2K uses for all users by modifying AllUsersProfile.

End of Article



Reader Comments
worked well, but don't forget to use switch /h to copy hidden files (like the whole "default user" dir) too.

cu

Thomas November 22, 2000


I cannot seem to get this tip to work for NT 4. According to Microsoft KB you cannot change the directory in which profiles are stored. I do not see a /o switch for XCOPY.
I would like to move the Profiles to the D partition.

Bryan April 04, 2001


You forgot to explain that profilePath key in the user's SID key under the key identified needs to be changed also. Without this change, profile corruption will occur.

Robert Smith April 04, 2001


You can also set the location for the documents and settings folder in Win2000 by using an answer file during installation, this allows you to specify a different drive altogether which is particularly useful when installing a server that is to run "terminal services" as this prevents profiles clogging up the system partition. See Q236621 on technet for further details.

Pete Langford November 25, 2002


sorry but it doesn't seem to work in Windows 2000
how to copy ?...ok i tried but the xcopy doesn't work...

pierre December 16, 2003


Hi
Can you explain this from the beginning again exactly how to do it?

I want to completely move win xp´s profile and "Documents and settings" to my d: partition

and can you also explain where and how i choose the new "Documents and settings" and profile when i install win xp again?

peman March 03, 2005


You can change the profile Win2K uses for default users by modifying the DefaultUserProfile string value, and you can change the profile Win2K uses for all users by modifying AllUsersProfile.

what change in AllUsersProfile

Anonymous User April 03, 2005 (Article Rating: )


Hi, I have jsut changed the path to another user's - but now when i try to log in it says Access Denied and loads the default profile.
I have checked permissions under documents and settings.wyn

Anonymous User April 04, 2005 (Article Rating: )


Here's how I suceeded in migrating profile.
1. First, create a new user, eg ProfileTemp, with full admin priveleges. Log in as ProfileTemp
2. Copy profiles across to new location, using xcopy. I used the switches /E /F /H /K /O /C /R. Use xcopy /? for an explanation of these.
3. Using regedit, in the reg key mentioned (HKLM\...\WindowsNT\CurrentVersion\ProfileList) AND ALL SUBKEYS, search and replace all instances of the old profiles directory path with the new. Restart computer and log in again as ProfileTemp.
4. If you look in new profiles directory, you may see a new profile named "ProfileTemp.{Full computer name}. This is the active profile.
5. Search registry for all occurrences of old profile directory path, and change to new path. I do this by exporting the relevant registry keys, using search and replace in a text editor to change the paths, and then double-clicking and importing my modified reg settings into the registry.
6. Restart. Log in as Administrator. Remove user ProfileTemp from computer using the "Users and Passwords" applet in control panel.
7. Restart. Log in as Administrator. You can now delete the old profile directory, and all profile directories belonging to ProfileTemp.

Anonymous User July 25, 2005 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Confirmed: Battery Life Issues Not Windows 7's Fault

Microsoft on Monday issued a lengthy statement about the recent Windows 7 battery controversy, echoing my assessment from earlier in the day, but backing it up with hard, cold evidence. ...

Battery Life Issues Almost Certainly Not Windows 7's Fault

While Microsoft is still investigating a notebook battery life issue that was supposedly caused by Windows 7, some interesting trends have emerged. ...

Microsoft Warns of Windows Version Expirations

Microsoft warned that this year will see three out-of-date Windows versions slip into retirement. ...


Windows OSs Whitepapers Protecting Microsoft SharePoint

Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Cutting Costs with Client Management

Introduction to Identity Lifecycle Manager "2"

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2010 Penton Media, Inc. Terms of Use | Privacy Statement