RE: Redirected folders and file operations



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
.



Relevant Pages

  • Re: IE6 cannot download files - HELP!!! thx!
    ... I logged in as administrator went to a command prompt. ... above the TIF but when I do a DIR command the TIF is not listed. ... is that the size of the folder per IE's Tools...Internet ... Even though I'd use the "Delete Temporary Internet Files" in the IE ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • RE: Redirected folders and file operations
    ... the folder as a precaution. ... Use a GPO to clear the temporary internet files ... have these run even if the user does not have access to command prompt. ... Brian Delaney, MCSE ...
    (microsoft.public.windows.server.active_directory)
  • Re: Internet explorer 6.0
    ... a hidden folder. ... you can simply delete the Temporary Internet Files ... In trying to follow this path from windows explorer I got as ... > I tried to use the command prompt from start, ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • delete folders using cmd prompt...
    ... How do I delete a folder using the command prompt? ... The reason for this is because I want to create a batch file to delete users "temporary internet files" folder ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Help with configuration
    ... to redirect their My Documents folder to a share on the fileserver. ... GPo, if it is already redirecting by default? ... account profile is blank, also). ... Your GPO settings do not apply to your Terminal Server. ...
    (microsoft.public.windows.terminal_services)