Solved

User profile path

Posted on 2004-10-23
3,580 Views
Last Modified: 2008-01-30
I am not a newbie under W2K, but this problem keeps me struggling. All MS Knowledge base articles I found are either obscure or don't work:

I am on a W2K system and I have to create new user accounts once in a while.
Now by default all user profiles get created under %USERPROFILE% which is usually C:\Documents and Settings\
When I specify a profile path in the Profile tab for that user one would assume that would change the path ... no way in a Microsoft product :-(

The reason why I want to change the path is that I can't have all the user files on the C: drive. There is a D: drive available for the users, but since email, desktop, My Documents ... just everything goes to C: I always have a full C: drive and plenty of space on D:.

Does anybosy know a reliable way in W2K to create the user's profile on a diffrent drive, a diffeent path?

====
Werner
0
Question by:griessh
    10 Comments
     
    LVL 49

    Expert Comment

    by:sunray_2003
    Werner,

    I am not sure why or where the problem is.

    Check this MS KB
    http://support.microsoft.com/kb/q142682/

    Just after Step 3

    1. In Control Panel, double-click the System, click the User Profiles tab.
    2. Select an existing local or roaming profile that you want to copy.  
    3. Click the Copy To button.  

    copy to D drive.. that is all.

    Are you unable to do that ?

    Are you logging in as administrator ?

    0
     
    LVL 11

    Expert Comment

    by:KaliKoder
    Hello Werner,

    It is definitely possible to create roaming profiles, and your roaming profile can live anywhere you want, on your D: drive on your E: drive, on any network drive.

    However, I believe what you are asking is this: "Is there any way of not having the "documents and settings\userprofile" folder on the C: drive ?" , and unfortunately I must say, the answer is No. A local copy (Cached copy) of a roaming profile is always downloaded to your system drive (in this case C:) to the C:\documents and settings folder. I had answered a similar question on EE before as well. Following is an excerpt from it, if you go to the url mentioned here, you would know what I am saying.

    Start Quote:
    According to MS there is no way of changing the Default folder locations after windows have been installed. Please refer to the following article, and look under default folder locations:

    http://www.microsoft.com/technet/prodtechnol/windows2000serv/howto/userdata.mspx#EEAA

    EndQuote:
     
    I hope this answers your question.

    Thanks and GoodLuck!
    0
     
    LVL 86

    Expert Comment

    by:jkr
    As a last resort, you could chang the env. ver. in HKEY_CURRENT_USER\Environment
    0
     
    LVL 11

    Expert Comment

    by:huntersvcs
    We did this about a year ago - but with WinXP Pro.  We wanted a sure way to use drive E for the entire contents of C:\Documents and Settings\ - not just My Documents.  We wanted the environment variables for programs, mail, desktop etc all to be on E so that in the event of a crash nothing would be lost.

    I experimented with several suggestions from the MS TechNet, Knowledgebase, etc., but they never seemed to work completely.

    I ended up doing it the hard way - but it is still working today.  I manually edited the registry for all user paths for ShellFolders and User ShellFolders.

    First, logon as administrator and set the default user paths.
    Next, logon as USER (with admin rights) and do the same with CurrentUser

    Hope this helps.
    0
     
    LVL 12

    Author Comment

    by:griessh
    sunray

    I am not part of a domain (I guess that's where it is working thsi way), so I don't see any option to create a roaming profile. I think what you try to tell me only works on a server.

    KaliKoder
    That's exactly what I am trying to do, move the who "Documents an Settings" directory.

    Jürgen
    HKEY_CURRENT_USER\Environment only has entries for tmp amd temp. Do you know the enviroment variable used for "Documents and Settings"?

    Huntersvcs
    That's what I did the last time. I fiddeled 3 days with the PC 'til it worked and last week I had to rebuild the system. What a pain!
    0
     
    LVL 11

    Expert Comment

    by:KaliKoder
    Hi griessh

    Like I said, MS says its not possible once windows is installed :(  According to MS there is no way of changing the Default folder locations after windows have been installed. Please refer to the following article, and look under default folder locations:

    http://www.microsoft.com/technet/prodtechnol/windows2000serv/howto/userdata.mspx#EEAA

    0
     
    LVL 49

    Expert Comment

    by:sunray_2003
    that link I had given is for local as well as roaming profile..

    You should be able to go to the same location and be able to "copy to"..

    BTW , are you the admin ?
    0
     
    LVL 1

    Accepted Solution

    by:
    Hi Griessh,

    Make sure you have a full backup before trying the following steps:

    1. Log as Administrator on W2K-based computer;
    2. Create a folder which will contain all the profiles (ex: "D:\profiles");
    3. Right-click on "My Computer" icon, choose "Properties", then "User Profiles" tab;
    4. Select each profile name in "Profiles stored on in this computer" and choose "Copy To..." button in order to copy the profile into new folder (in case: D:\profiles); click OK when this step finish;
    5. Open registry and move to key:
    "HKLM\SOFTWARE\Mcrosoft\WindowsNT\CurrentVersion\ProfilesList"
    6. Double-click on "ProfilesDirectory" and change its value to folder-name you want.
    7. Close the registry.
    8. Restart you computer.

    Hope you success,

    Dunglc
    0
     
    LVL 10

    Expert Comment

    by:Longbow
    This is maybe what you search for.
    How To Change the Default Location of User Profiles and Program Settings :
    http://support.microsoft.com/default.aspx?scid=kb;en-us;322014
    0
     
    LVL 12

    Author Comment

    by:griessh
    OK folks, I spend part of my Sunday digging and now I find dunglc99 has what I needed <LOL>

    For better understanding of the whole system here is some more information:

    HKEY_USERS\...\Software\Microsoft\Windos\CurrentVersion\Explorer\User Shell Folders points to "%USERPROFILE%\<Directory>"
    HKEY_USERS\...\Software\Microsoft\Windos\CurrentVersion\Explorer\Shell Folders have those directories with their real paths.

    The USERPROFILE variable is defined in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ProfileImagePath as "%SystemDrive%\Documents and Settings\<user>"
    which itself is derived from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ProfilesDirectory with the value "%SystemDrive%\Documents and Settings"

    With this information you can change specific directories of a single user, the location of a singe user's profile and the location of all (new) profiles.

    ====
    Werner
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video discusses moving either the default database or any database to a new volume.

    933 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now