Windows Installation and user profile path

Solution 1:

For relocation of any User Profile folders as you install Windows, check this excellent tutorial: http://www.youtube.com/watch?v=Unm3VMTMZu4

Solution 2:

After some trial and error, it seems that the best method was to install windows, login to the admin during post installation.

Edit the registry @

 HKEY_LOCAL_MACHINE/SOFTWARE/MICROSOFT/WINDOWS NT/CurrentVersion/ProfileList 

Then change default, ProfilesDirectory and public to the desired paths.

I had played around with linking both symbolic and junction but for some strange reason it didn't work as expected and kept logging out while trying to log in. Also changing HKEY_LOCAL_MACHINE/SOFTWARE/MICROSOFT/WINDOWS NT/CurrentVersion/ProfileList/{profile id} (won't be hard to find when you see where the ProfileImagePath is pointing to) didn't work as expected either after creating the account.

I can't recall the problem but I think it was the same issue as mklink. The failures may have to do with the order I did things etc but in return the above method I had mention works for me, but be careful, if you create an account and that path exists with your files already there, it will wipe it all and create a fresh user directory.

So if you already have a profile at D:\users\{username} and wish windows to use that path for you new installation.. then make sure you rename it first eg D:\users\{username}.old then create the profile and cut and paste the contents from old into the newly created profile path. This will be instant considering the files are located on the same drive.

Now if you do not wish to do this every time you install windows, you can make a quick script too automatically do it for you.

Once Windows has finished installing, it will run any commands that you place in {windowscd}\$OEM$(maybe different for others but I'm not sure)\$$\SETUP\SCRIPTSSETUPCOMPLETE.CMD, then just enter the same process in that file. You may wish to use an usb device for this as CD's aren't writeable and there are plenty off methods out there in how to install windows from usb.

You can change registry settings, create user accounts, rename and move files straight from commands which fits the solution nicely...