Home All Groups Group Topic Archive Search About

Deleting temporary Internet files from logon.bat

Author
9 Mar 2006 8:15 AM
Gene Rofssey
Hi,

We have problems (as many other) to have GPO delete cached profiles from a
w2k server.

Hence I thought I'd delete it manually from logon.bat when the user logs in.
I added the following line to logon.bat:

del /F /S /Q "\\server4\e$\home\%USERNAME%\profile\Local Settings\Temporary
Internet Files\*.*"

However I get an access denied error.  The same occurs when I try to issue
the above command when the user is logged in.  I thought that users were
free to delete contents in their own profile.??

Any (other) clue(s) on how to force deletion of 'unnecessary' contents in
cached profiles?

regards

Gene

Author
9 Mar 2006 8:30 AM
Pegasus (MVP)
Show quote Hide quote
"Gene Rofssey" <gen***@gmail.com> wrote in message
news:e43rBJ1QGHA.5728@tk2msftngp13.phx.gbl...
> Hi,
>
> We have problems (as many other) to have GPO delete cached profiles from a
> w2k server.
>
> Hence I thought I'd delete it manually from logon.bat when the user logs
in.
> I added the following line to logon.bat:
>
> del /F /S /Q "\\server4\e$\home\%USERNAME%\profile\Local
Settings\Temporary
> Internet Files\*.*"
>
> However I get an access denied error.  The same occurs when I try to issue
> the above command when the user is logged in.  I thought that users were
> free to delete contents in their own profile.??
>
> Any (other) clue(s) on how to force deletion of 'unnecessary' contents in
> cached profiles?
>
> regards
>
> Gene

Try this command instead, first from a Command Prompt
and then via logon.bat:
rd /s /q "\\server4\e$\home\%USERNAME%\profile\Local Settings\Temporary
Internet Files\content.ie5"

Bookmark and Share