I was reading around about doing this today and just knew there had to be a better way than using the "Location" aspect of the Windows Vista/7 user folders. I've also tried doing this using Symbolic Links, which worked great except for AppData and ProgramData - This guide sorts that out too. There was also the problem of programs that have hardcoded C:\Users and C:\ProgramData into them - This addresses that too.
You may want a Smartphone,Tablet or laptop handy to refer back to this guide just in case.
Clean Install Method
If you don't want to perform a clean install you can do this but it's highly recommended you do a clean install to make sure everything goes smoothly. Read the guide above so you understand what we're doing and then come back here and do the following:
Create the XML document as in the guide above and put it somewhere like a USB stick or e-mail it to yourself.
Open a command prompt window with administrator privileges (right click and choose "Run As Administrator")
type:
Quote:
Quote:
The difference here is when you finish and reboot you will be again taken to the welcome screens that ask you to put in your username and computer name as the system believes it has just been booted for the first time. Choose a username like "Test" because yours is already taken - you may want to keep the same computer name though, you can use the old one that's ok. Now once you're at the logon screen, ignore the test account and just use your normal one. If everything went ok your user folders were were moved.
I cannot guarantee your stuff will have been moved or that you can even get into your account. I lost access to the user account this way, but others reported it worked ok for them. I do not recommend it at all. Fortunately the user account stuff is retrievable if you log into Safe mode and use the built-in administrator account to mess with the registry and relocate your files, but it was a hassle. Use at your own risk.
You may also try the Profile Locater software someone mentioned found here.
I read a number of guides to get all this information. Each one had a slightly different take but I think this one works the best!
You may want a Smartphone,Tablet or laptop handy to refer back to this guide just in case.
Clean Install Method
- Before performing a clean install you need to copy this file either to a USB stick, CD or any other kind of Removable Media. You may even e-mail it to yourself, but you need this XML document first:
Copy the following text into notepad:
Code:
Code:<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <FolderLocations> <ProfilesDirectory>E:\Users</ProfilesDirectory> <ProgramData>E:\ProgramData</ProgramData> </FolderLocations> </component> </settings> <cpi:offlineImage cpi:source="wim:I:/sources/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>
Quote:
- use x86 for Windows 32bit
- use amd64 for Windows 64bit
- HOMEBASIC
- HOMEPREMIUM
- PROFESSIONAL
- ENTERPRISE
- ULTIMATE
And finally, remember this line?
Quote:
When you've finished that, save the file as an XML document. Save it as something you will remember and is easy to type, I chose "relocate.xml" Remember to change "save as file type" to "All Files" as the image below:
Now copy that file to the removable media you have prepared, or even e-mail it to yourself.
You should also download LinkShellExtension (32bit or 64bit) while you can and have them handy for when you're in your clean install.
- If you're using an SSD for your Windows drive disconnect any mechanical HDD's and begin a clean install of Windows. We'll reconnect your other drives alter because we'll need one of them, at least, in order to move the user profiles to another drive. If you're not using an SSD, perform a clean install.
- When the install is complete and you are at the screen that asks for a username and computer name DON'T do anything here. Do not go forward or put in a username & computer name. Instead, press CTRL+SHIFT+F3. Your computer will reboot (this is normal). When it's rebooted you will be taken to a desktop. This is Windows Vista/7 Audit Mode which OEM's and SysAdmin's use to pre-configure a Windows install before deployment. You can install some drivers here if you need to but I'd suggest waiting. If you e-mailed the XML file to yourself then you may need to install network card drivers. You will see a Window also that says "System Preparation Tool" in the title close this by clicking cancel or the cross.
- If you are using an SSD drive for this guide, shutdown the system, reconnect your drives and reboot the system. You will be taken back to where you were before you shutdown. Close that Sysprep window and continue the guide.
- Open up the Command Prompt by typing cmd into the Windows start menu, or finding it in the Accessories folders of the start menu.
Type:
Quote:
Quote:
A small Window should pop up that says: "Processing cleanup phase Sysprep plugins" when that's finished the system with reboot.
- When the system has finished rebooting You will be again greeted by the previous System Preparation Window. This time, click ok and the system will again reboot! Don't click or change anything else.
- Your computer will now boot for the first time (again, lol) and you will be asked to choose your keyboard settings, username, computer name and product key information. This time you can enter them normally and continue to the Windows desktop! Check your C: drive there should be no user folder and it should now be on your chosen drive! If the user folder is still there or you can't log in you did something wrong in the XML file!. Before you install ANY programs we need to deal with those hard coded programs that may crop up!
- Install Link Shell Extension (32bit or 64bit).
- Once Link Shell Extension is installed navigate to where ever you located the users folder. Right click on the Users folder and choose "Pick Link Source" from the right click menu. Now move over to the C drive and right click in an empty space (avoiding any folders that are in there) and choose "Drop As --> Junction".
- Next can be tricky. It was for me but it may not be for you. In the C Drive, again, we need to show hidden files and folders. Click "Organize" and choose "Folder and Search Options. Choose the "View" tab and find the option to enable "Show hidden files, folders and drives" and then choose "OK". Now you should see a hidden folder called "ProgramData" in your C: Drive. If you don't, that's fantastic and you may go back to where ever you relocated the ProgramData folder it in the XML file and create a Junction link as we did just now with the Users folder. If, like me, you did indeed see a copy of ProgramData in the C: drive... try to delete it. If you can, good, create the link as I just mentioned. More than likely it won't allow you to and we'll have to delete it the hard way
- Reboot your computer into Safe Mode. To do this, reboot and hammer the F8 key until you're greeted with options for safe mode. Choose "Safe Mode with Command Prompt".
- Once at the command prompt type this:
Quote:
Now type:
Quote:
type:
Quote:
Quote:
That's it, we've done!
If you don't want to perform a clean install you can do this but it's highly recommended you do a clean install to make sure everything goes smoothly. Read the guide above so you understand what we're doing and then come back here and do the following:
Create the XML document as in the guide above and put it somewhere like a USB stick or e-mail it to yourself.
Open a command prompt window with administrator privileges (right click and choose "Run As Administrator")
type:
Quote:
then:
Quote:
This will reboot the system to the Audit Mode and you can continue from step 5.
The difference here is when you finish and reboot you will be again taken to the welcome screens that ask you to put in your username and computer name as the system believes it has just been booted for the first time. Choose a username like "Test" because yours is already taken - you may want to keep the same computer name though, you can use the old one that's ok. Now once you're at the logon screen, ignore the test account and just use your normal one. If everything went ok your user folders were were moved.
I cannot guarantee your stuff will have been moved or that you can even get into your account. I lost access to the user account this way, but others reported it worked ok for them. I do not recommend it at all. Fortunately the user account stuff is retrievable if you log into Safe mode and use the built-in administrator account to mess with the registry and relocate your files, but it was a hassle. Use at your own risk.
You may also try the Profile Locater software someone mentioned found here.
I read a number of guides to get all this information. Each one had a slightly different take but I think this one works the best!