CMD: How to delete Temporary Internet Files and Cookies cache
June 2, 2008 in Windows Scripts by MLK
- Create/open new CMD or BAT file (ex. Script.cmd or Script.bat)
- Include this code into the file:
- @ECHO OFF
- rd “%userprofile%\local settings\temporary internet files\content.ie5″ /s/q
- rd “%userprofile%\local settings\history\history.ie5″ /s/q
- del “%userprofile%\cookies\*.*” /s/q/f
- EXIT
- Save this batch file
- Open Group Policy Editor
- Add this batch file as Logoff script:
- Local Computer Policy – User Configuration – Windows Settings – Scripts (Logon/Logoff)
- Local Computer Policy – User Configuration – Windows Settings – Scripts (Logon/Logoff)




















