Automatically setting default locations of Cookies/Desktop/Favourites/My Document/My Pictures for a new user
Posted on 2004-05-02
I've maxed out all my points for this one (would love to give more!)....
Hi, first let me explain this is not the common regedit My PC\HKEY_CURRENT_USER, use TweakUI Powertool issue or right-click My Documents -> Move..... I already know how to do all the above manually like this for each user. I want a way to do this automatically before it creates the default folders, and presume it needs to be setup before I create users - no problem. However I want the default accounts (e.g. Administrator) to reside at their usual location so changing the location of the entire "Documents and Settings" folder by customising the XP installation CD is a big no-no.
So my initial test was to change the HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders registry entries. After all, in HKEY\USERS\.DEFAULT are the keys that are used to "define" a new user when he first logs on and his profile is created - aren't they?
So here is what I did (and it didn't work):
In this example let's just use the Desktop folder, I want it to point to D:\<username>\Desktop
I located the key HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Desktop
I changed it from %USERPROFILE%\Desktop to D:\%USERNAME%\Desktop
I made sure I had a folder called D:\Fred\Desktop (with total permissons) and then I created the user Fred expecting his Desktop to point to D:\Fred\Desktop. It doesn't - it points C:\Documents and Settings\Fred\Desktop :( I also tried this again without creating the Fred folder.
So is there a way to to this without using Roaming Profiles (this is a local non-networked machine), or without having to do all users manually ?
Thanks in advance