Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE 6SP1 default cache location 1

Status
Not open for further replies.

mitchero

MIS
Joined
Sep 23, 2002
Messages
95
Location
US
Anyone know how to change the default location of IE 6.0SP1 cache for all users on a Win2k terminal server? Users in our Citrix environment are currently caching IE to their home directory. It seems that the SAN that is hosting the home directories has become a bottle-neck and is affecting IE performance via Citrix...so the users think the problem is w/ Citrix. Heard that before?

I would prefer to take the SAN out of the picture and cache to the local profiles which will be deleted when the users log off.

-Ron
 
Hi,

You could do the registry bit with GPO's but I'll do it by scripting, once you get it working, you can alter it accordingly!

Part 1
------

Create a .cmd file called Cache.Cmd, cut and paste everything within the "=". I've used "V:" as my empty drive, you'll use yours!!! You'll need to create a directory on your drive called "TIF" and sort the security settings out so users can create directories/files!

===========================
@ECHO OFF

IF EXIST "V:\TIF\%USERNAME%" GOTO SubstDrive

V:
CD\TIF
MD %USERNAME%
CD %USERNAME%
MD "Temporary Internet Files"
CD
:SubstDrive

Subst T: V:\TIF\%USERNAME%

===========================

Run the script but DO NOT RUN IE YET! Have you a T Drive and is it correct? Should be "Yes"!

Now, alter your HKEY_CURRENT_USER keys:-

Software\Windows\CurrentVersion\Explorer\Shell Folders
Cache="T:\Temporary Internet Files"

Software\Windows\CurrentVersion\Explorer\User Shell Folders
Cache="T:\Temporary Internet Files"

Now run IE and all your Temp Files should be now pointing to T:\Temporary Internet Files.

To alter each user, copy the info below:-

==================================
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"Cache"="T:\\Temporary Internet Files"


[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]

"Cache"=hex(2):54,00,3a,00,5c,00,54,00,65,00,6d,00,70,00,6f,00,72,00,61,00,72, 00,79,00,20,00,49,00,6e,00,74,00,65,00,72,00,6e,00,65,00,74,00,20,00,46,00, 69,00,6c,00,65,00,73,00,00,00

===============================================

Save the information as "cache.reg" in ?:\Winnt

Part 2
------

Now to alter it for all users, by amending cache.cmd:-

===========================
@ECHO OFF

IF EXIST "V:\TIF\%USERNAME%" GOTO SubstDrive

V:
CD\TIF
MD %USERNAME%
CD %USERNAME%
MD "Temporary Internet Files"
CD
:SubstDrive

Subst T: V:\TIF\%USERNAME%
RegEdit /S ?:\Winnt\Cache.Reg
===========================

Within the first few lines of usrlogon.cmd do:-

Call ?:\Winnt\Cache.Cmd

And this will sort out every user on your server, does this work and make sense?

Cheers,
Carl.
 
Thanks Carl. I created the following before I read your post...does the trick too.

Usrlogon.cmd calls Usrlogon2.cmd

Usrlogon2.cmd [in %systemroot%\system32]

Call "m:\winnt\application compatibility scripts\logon\myscript.cmd"

- Inside the script:

"m:\WINNT\Application Compatibility
Scripts\Logon\Template\myregistryhack.vbs"

- Inside the .vbs file:

WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Cache", "%USERPROFILE%\Cache", "REG_EXPAND_SZ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top