RE: Redirected folders and file operations
- From: Brian Delaney <bdelaney01@xxxxxxxxx>
- Date: Wed, 19 Apr 2006 18:47:02 -0700
A couple options...
1. Use a GPO to clear the temporary internet files
User Configuration\Administrative Templates\Windows Components\Internet
Explorer\Internet Control Panel\Advanced Page\Empty Temporary Internet Files
folder when browser is closed
2. Temporary Internet files are not uploaded to the server anyways as part
of the roaming profile, they are only kept locally on the machine. But if
there is a directory that is getting uploaded that you want to exclude there
is a GPO to do that as well:
User Configuration\Administrative Templates\System\User Profiles\Exclude
directories in roaming profile
3. Use a logon or logoff script via GPO. I'm not sure if it's by default or
you need to configure a setting when you set up the logon script but you can
have these run even if the user does not have access to command prompt.
--
Brian Delaney, MCSE
"Nancy R" wrote:
Hi,.
This may be a double post, it errored out when I tried the first time.
I will apologize in advance if this is not the correct place to post this
question but I'm not really sure where the issue falls.
I am having a strange problem with a command prompt command working
differently depending on how it is run.
Currently our users have their My Documents folder redirected to a network
share, this includes Administrators. We would like to have a command run at
startup that deletes all files in the Temporary Internet Folders directory.
It is imperative that this include the randomly named OLK folder so we cannot
use the GPO setting to do it.
The reason we would like to do it is that if a large number of files
accumulate in there it both dramatically increases the size of their roaming
profiles and can cause Outlook to be unable to save/open attachments.
I have tried two different things:
*A batch file in the startup that deletes all of the content. This works
properly, both with a test "regular" user and my admin account. The batch
file contents are:
ECHO OFF
C:
Cd "\Documents and Settings\%USERNAME%\Local Settings\Temporary Internet
Files"
del *.* /S /Q /F
*An entry in the Run key in the registry. This works in that it deletes the
desired files and leaves the folders (our preferred choice) however it also
deletes all of the files in the redirected My Documents folder. This is
obviously a huge problem. It occurs both with the regular and admin
accounts. The registry entry is as follows (I have tried both in HKLM and
HKCU):
HK**\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
ClearIECache Value: "C:\WINDOWS\system32\cmd.exe" /c "del "C:\Documents
and Settings\%USERNAME%\Local Settings\Temporary Internet Files" *.* /S /Q /F"
Now the reason I can't use the batch file is our users are restricted from
accessing the command prompt so they don't run.
Does anyone have any ideas why this is happening or perhaps of a better way
to do it?
Oh ya, we are running Windows XP SP2 on a W2K3 domain.
Thanks in advance,
Nancy
- Follow-Ups:
- RE: Redirected folders and file operations
- From: Nancy R
- RE: Redirected folders and file operations
- Prev by Date: Re: AD Intersite replication
- Next by Date: Re: SIMPLE (I Hope) AD SITE/SUBNET Question
- Previous by thread: Group Policy Modelling Errors in DC Container.
- Next by thread: RE: Redirected folders and file operations
- Index(es):
Relevant Pages
|