Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3866
  • Last Modified:

Logoff Script to clear cache and IE temp files

Can anyone help me create a  script?a  new batch file or script that will automatically delete  all the files created inside the Temporary Internet folders and cahce of the current user when he/she log off.
0
jaydeeoseph
Asked:
jaydeeoseph
1 Solution
 
kamalgopiCommented:
check out this one.
del /Q C:\WINDOWS\Temp
You can use GP to remove temporary internet files, but you will need to have the settings in preference mode. On the GP, Under User Configuration->Windows Settings->Internet Explorer Maintenance (you need to right click, and put in Preference Mode)->Advanced

Hope this helps
Cheers:)
Kamal
0
 
MidnightOneCommented:
Try this one:

del "%temp%\*.*" /s /q /f
del "%tmp%\*.*" /s /q /f
rd "%userprofile%\Local Settings\History\History.ie5" /s /q
del "%userprofile%\Cookies\*.*" /s /q /f
rd "%userprofile%\Local Settings\Temporary Internet Files\content.ie5" /s /q

HTH

MidnightOne
0
 
jaydeeosephAuthor Commented:
Thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now