Change document and settings folder +

Discussion in 'Windows Desktop Systems' started by illmaticone, Mar 3, 2006.

  1. illmaticone

    illmaticone OSNN Junior Addict

    Messages:
    45
    ok i know how to change document and settings folder but my question is how do i change the default directory so that way when a new user is created it doenst create it in C:\document and settings\new user
    but instead .. lets say D:\new user

    thanks for your help
     
  2. omg its nlm

    omg its nlm lvl 17 Hax Folding Team

    Messages:
    1,829
    Location:
    Minnesota
    Maybe in the Enviroment Variables in system properties?
     
  3. NetRyder

    NetRyder Tech Junkie Folding Team

    Messages:
    13,256
    Location:
    New York City
  4. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    See, I disagree completely with moving the directory entirely, and that is because it can confuse users. My preferred method of doing it is with folder re-direction. This way the folder structure is still there, incase the user wants to go to C:\Documents and Settings\%username%\desktop , etc. just because they can. If you move to a different volume or directory, that can get confusing. Also, a common misconception, is that you do NOT need a Domain type environment to enable folder re-direction.

    Maintaining your desire to have files on D:\users....

    You want to write a login script that changes the folder locations via the registry. The path(s) you want to modify are as follows:

    HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Desktop

    HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Favorites

    HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\My Documents

    Etc.

    I would place this script in the "Default User" profile, in the startup folder, which will effect all users going forward. Login with each user profile already created, or place in the "All Users" folder so it will happen when they next login.

    I have the script at home, so I can post something more detailed when I get there. I was doing this from memory, so I apologize for the lack of detail here. It has worked well for me in the past, and if you are in a DC environment with ADUC, you can do this through GPO as well

    EDIT: My way doesn't really answer your question to specifically MOVE the folders, but is an alterior suggestion :)
     
  5. illmaticone

    illmaticone OSNN Junior Addict

    Messages:
    45
    well my reason for moving the the directory is because what i do is deep freeze the machine so there are no PEBKAC issues, but i want to give my users the right to save files so what i do is create a second partiton that is not "frozen" and redirect all the directories to that partition and hide that partition. basically everything on the system is protected and preserved but i'm giving them the ability to save files in their my documents only. So if i change the profile directory from %systemdrive%/documents and settings/ to lets say E:/documents and settings/ when ever a new user is created their files (my documents, favorites, desktop etc) are created on the E drive and not the C? thanks
     
  6. illmaticone

    illmaticone OSNN Junior Addict

    Messages:
    45
    I just made the change in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList and it did create the new folders in the new directory, now how do i make the change so windows defaultly LOOKS ate E:\Documents and settings\ instead of %systemdrive%\documents.... with out using tweakui for each user
     
  7. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    I think if you use GETSID, grab the SID of the Default User. Once you have that, edit the proper values in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList