Page 1 of 1 1
Topic Options
#52497 - 2000-12-01 06:57 PM Add registry Key to remote machines using Kixtart?
Anonymous
Unregistered


I am hoping someone can help with this. I have the info required to add/change the registry key to move temporary internet files form their default location to another location. I am wanting to use a scipt within Kixtart to do this. Could anyone help us out with a script?

Thanks for your help.


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

A. By default the storage area for temporary internet files is "%systemroot%\Profiles\<user>\Temporary Internet Files", and if you implemented roaming profiles then these files would count as part of your profile taking up valuable server space. To change the location from the browser perform the following: Start Internet Explorer Select "Internet Options" from the View menu Select the General tab Click the Settings button Click the "Move Folder" button Click Yes to the confirmation dialog 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 following registry values and include it as part of a logon script HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path1\CachePath HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path2\CachePath HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path3\CachePath HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path4\CachePath HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Cache HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Cache An example .reg file would be REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path1] "CachePath"="E:\\TEMP\\Cache1" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path2] "CachePath"="E:\\TEMP\\Cache2" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path3] "CachePath"="E:\\TEMP\\Cache3" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path4] "CachePath"="E:\\TEMP\\Cache4" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders] "Cache"="E:\\TEMP" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders] "Cache"="E:\\TEMP" Make sure you use 2 \'s. This would set the cache area to e:\temp however you could change this to anything you want. Save the above as cache.reg and run as regedit /s cache.reg Netscape does not store temp files under the user profile (if you are interested it is stored in the registry location HKEY_LOCAL_MACHINE\SOFTWARE\Netscape\Netscape Navigator\Users\<user>\DirRoot ;-) ).


Justyn

------------------
Imagination is more important than knowledge.

Top
#52498 - 2000-12-02 08:06 AM Re: Add registry Key to remote machines using Kixtart?
Anonymous
Unregistered


Hya Justyn..,

Changing the IE Temp.Internetfiles location during a session could work for IE4x but will not work for IE5x..!! The change will only work after a Reboot..!!

This is what I use in the logonscript.

code:
; Change Cache settings InternetExplorer 4.x/5.x

:ChangeCacheIE
MD "C:\TEMP\IECACHE"
WRITEVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Content","CachePath","C:\TEMP\IECache","REG_SZ")
WRITEVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Content","CacheLimit","25600","REG_DWORD")
WRITEVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths","Directory","C:\TEMP\IECache\Temporary Internet Files\Content.IE5","REG_SZ")
WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings","SyncMode","3","REG_DWORD")
WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings","SyncMode5","3","REG_DWORD")
WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Url History","DaysToKeep","10","REG_DWORD")
WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Cache","C:\TEMP\IECache\Temporary Internet Files","REG_SZ")
WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Cache","C:\TEMP\IECache\Temporary Internet Files","REG_SZ")
WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content","CacheLimit","25600","REG_DWORD")
WRITEVALUE("HKEY_USERS\@SID\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Url History","DaysToKeep","10","REG_DWORD")


There is a checkbox in the 'Advanced' Tab of the 'Tools-Internet option' properties which enables 'Empty Temporary Internet Files when browser is closed'.
I will check now for the RegKey.

------------------
To Be Of Service..,
Fabian.
-----------------Paranoia is reality on a finer scale-----------------

Top
#52499 - 2000-12-02 08:21 AM Re: Add registry Key to remote machines using Kixtart?
Anonymous
Unregistered


Hya Justyn..,

I found it:

code:
 ;  Win9x/WinMil/WinNT Workstations
WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache","Persistent","0","REG_DWORD")

Jostyn please post your script between (without the spaces ) [ code ] and [ /code ]

------------------
To Be Of Service..,
Fabian.
-----------------Paranoia is reality on a finer scale-----------------

[This message has been edited by Fabian (edited 03 December 2000).]

Top
#52500 - 2000-12-04 10:37 AM Re: Add registry Key to remote machines using Kixtart?
Anonymous
Unregistered


Thanks for your help Fabian. I am more interested in changing the location as we have set the option in Internet Exploer 5.5 to Empty Temp Internet files but this doesn't always seem to work. I am just going to try your first script. Thanks for your help.

------------------
Imagination is more important than knowledge.

Top
#52501 - 2000-12-22 07:55 PM Re: Add registry Key to remote machines using Kixtart?
rick_coughlin Offline
Fresh Scripter

Registered: 2000-11-15
Posts: 7
Loc: Gaithersburg, MD, USA
I think this may be a better solution for you then changing the default location of the temporary internet files. Just EXCLUDE specific profile directories from the users profile. Just remember to use the semi-colon to seperate the list of directores that are not to be copied up to your server.

Note: The directories will still exist on each workstaion, they just will not get copied up to the server when the users log out. So you will want to delete the same directories off of your server or else they will keep being downloaded each time the users logon.


Here is the code that I use.

code:
; ----------------------------------------------------------------------- ;
; Prevent Certain Folders from Uploading to Central Profile. ;
; ----------------------------------------------------------------------- ;

WRITEVALUE ("Software\Microsoft\Windows NT\CurrentVersion\Winlogon", "ExcludeProfileDirs", "Temporary Internet Files;Desktop;History;Local Settings\Temporary Internet Files;Local Settings\Temp;Personal;Start Menu", "REG_SZ")


; ----------------------------------------------------------------------- ;
; Delete Certain Folders from the Central Profile. ;
; ----------------------------------------------------------------------- ;

SHELL "%ComSpec% /C RMDIR /S /Q \\YourServer\Profiles\" + @USERID + "\Temporary Internet Files"
SHELL "%ComSpec% /C RMDIR /S /Q \\YourServer\Profiles\" + @USERID + "\Desktop"
SHELL "%ComSpec% /C RMDIR /S /Q \\YourServer\Profiles\" + @USERID + "\History"
SHELL "%ComSpec% /C RMDIR /S /Q \\YourServer\Profiles\" + @USERID + "\Local Settings\Temporary Internet Files"
SHELL "%ComSpec% /C RMDIR /S /Q \\YourServer\Profiles\" + @USERID + "\Local Settings\Temp"
SHELL "%ComSpec% /C RMDIR /S /Q \\YourServer\Profiles\" + @USERID + "\Personal"
SHELL "%ComSpec% /C RMDIR /S /Q \\YourServer\Profiles\" + @USERID + "\Start Menu"



Rick


[This message has been edited by rick_coughlin (edited 22 December 2000).]

[This message has been edited by rick_coughlin (edited 22 December 2000).]

Top
#52502 - 2001-01-05 11:01 AM Re: Add registry Key to remote machines using Kixtart?
Anonymous
Unregistered


Thanks for all your help everyone.
I came up with this idea in the end as the Temp Internet files where not only waisting space on our Servers but also on Workstations. I have used this in our Logon Script file.

del /S /Q /F "%USERPROFILE%\Temporary Internet Files\*.*" > nul
del /S /Q /F "%USERPROFILE%\Local Settings\Temporary Internet Files\*.*" > nul


This seems to have done the trick. Simple but affective.

Cheers again.

Justyn

------------------
Imagination is more important than knowledge.

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 611 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.052 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org