How can I exclude the Temporary Internet Files folder from the user profile?

John Savill

March 4, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. By default the storage area for temporary internet files is"%systemroot%ProfilesTemporary Internet Files", and ifyou implemented roaming profiles then these files would count as part of yourprofile taking up valuable server space. To change the location from thebrowser perform the following:

  1. Start Internet Explorer

  2. Select "Internet Options" from the View menu

  3. Select the General tab

  4. Click the Settings button

  5. Click the "Move Folder" button

  6. Click Yes to the confirmation dialog

  7. Select the new location and click OK

You will need to restart the machine for the new location to take effect

Alternatively you could create a reg file to manually update the followingregistry values and include it as part of a logon script

  • HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternetSettingsCachePathspath1CachePath

  • HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternetSettingsCachePathspath2CachePath

  • HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternetSettingsCachePathspath3CachePath

  • HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternetSettingsCachePathspath4CachePath

  • HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerShellFoldersCache

  • HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerUserShell FoldersCache

An example .reg file would be

REGEDIT4

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternetSettingsCachePathspath1]
"CachePath"="E:\TEMP\Cache1"
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternetSettingsCachePathspath2]
"CachePath"="E:\TEMP\Cache2"
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternetSettingsCachePathspath3]
"CachePath"="E:\TEMP\Cache3"
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternetSettingsCachePathspath4]
"CachePath"="E:\TEMP\Cache4"
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerShellFolders]
"Cache"="E:\TEMP"
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerUserShell Folders]
"Cache"="E:\TEMP"

Make sure you use 2 's. This would set the cache area to e:temp howeveryou could change this to anything you want. Save the above as cache.reg and runas

regedit /s cache.reg

Netscape does not store temp files under the user profile (if you areinterested it is stored in the registry locationHKEY_LOCAL_MACHINESOFTWARENetscapeNetscapeNavigatorUsersDirRoot ;-) ).

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like