Make your roaming profile load faster by moving your temporary files out of the profile directory.
I work with various clients and am given accounts on their networks, some of those clients use roaming profiles and it’s not unusual to find myself spending 20 minutes waiting for a roaming profile to load up from India, Australia or the United States (via Canada).
The simplest method I’ve found to reducing the time it takes to load a roaming profile is to move all of the files that you don’t want to roam with, out of the profile. And the quickest way to achieve that is to shift all of the temporary files that you create just by using your account out of your profile.
Note: The following is a security risk as things in your profile are only accessible by you and by moving them into a public location on the computer you make them accessible to all users of the system.
Note 2: Throughout this guide I’ve used %appdata% as a shortcut for the application data path. This is an environment variable, but if you see %appdata%/Local then you should enter the %appdata% bit and then go up a folder to the Local folder.
Preparation:
Create a folder named C:\Temp\
Within that folder create four more folders:
C:\Temp\User\
C:\Temp\IE\
C:\Temp\Firefox\
C:\Temp\Chrome\
Moving Files:
Temp Files
On Windows XP right click My Computer > Properties.
On Windows Vista or Windows Server 2008: Start > Type “System” > Open “System” > Advanced System Settings.
On all Windows machines:
System Properties > Advanced > Environment Variables
Edit the TEMP and TMP variables within the User (top part) section to point to:
C:\Temp\User\
Now that you have moved the folder, you need to log off and log back on for it to fully take effect (running programs will still be looking at the old location). Once you have done that you can browse to %appdata%\Temp (WinXp) or %appdata%\Local\Temp (WinVista, WinServer2008) and delete all of the old temporary files.
Optional: If you’re doing this to put all of the temp files onto a flash drive that is permanently attached, you can also adjust the System variables, create a folder named C:\Temp\Sys\ for that and edit the lower section so TEMP and TMP point to that folder. You will need to reboot to be able to delete the old files at C:\Windows\Temp .
Internet Explorer Temporary Internet Files
Internet Options > General > Browsing history > Settings > Move Folder
Now select C:\Temp\IE\ as the folder you want to store the temporary files in and it will prompt you to log off and back on to complete the move.
In Windows Vista and Windows Server 2008, the old folder does not exist… it is moved. So you have nothing to clean up.
Firefox Cache
In the address bar enter about:config and create a new string value: browser.cache.disk.parent_directory
Set the value of that to: C:\Temp\Firefox\
Restart all Firefox instances and windows and you can now delete the old cache items within %appdata%\Local\Mozilla\Firefox\Profiles\<your profile name>\Cache. Not that you should not delete the profile directory… that would be stupid… just delete the items in the cache directory.
Google Chrome Cache and User Files
Modify the shortcuts that start Google Chrome and add –user-data-dir=”C:\Temp\Chrome” after the chrome.exe bit.
This will give you a shortcut of:
%appdata%\Local\Google\Chrome\Application\chrome.exe –user-data-dir=”C:\Temp\Chrome”
Before you start Chrome you may want to move any existing profile directory from:
%appdata%\Local\Google\Chrome
to:
C:\Temp\Chrome
If you did this right, the next time you click the Chrome shortcut it will load up the settings from the Temp location and write the cache data there. Note: Chrome will no longer roam with you, but if you’re doing this for speed that’s no bother, and if it’s at work and you’re just using it for a solid browser in times of need then again this probably isn’t a concern for you.
5 Comments, Comment or Ping
chad
Great post! Found it while digging around for tips on roaming profiles.
Since you wrote this, have you made any other findings or tweaks?
Thanks
Feb 18th, 2009
Diego
Gracias
Aug 12th, 2009
Snusacabnal
Excellent blogpost, good looking blog, added it to my favorites!
Dec 11th, 2009
bandsxbands
Reading these kind of posts reminds me of just how technology truly is omnipresent in this day and age, and I am fairly certain that we have passed the point of no return in our relationship with technology.
I don’t mean this in a bad way, of course! Societal concerns aside… I just hope that as the price of memory decreases, the possibility of transferring our memories onto a digital medium becomes a true reality. It’s one of the things I really wish I could experience in my lifetime.
Feb 2nd, 2010
nima
there’s a better way on win7. I was toying around with it and found some ways to move everything from your user profile to another drive.
Open your user profile (C:\user\profilename).
right click on ANY folder and go to properties
go to location tab and enter the location you want. press “yes” to both prompts.
show hidden files and folders.
open appdata
follow same steps with these 3 folders
May 9th, 2010
Reply to “Make your roaming profile load faster by moving your temporary files out of the profile directory.”