CMD: How to delete Temporary Internet Files and Cookies cache
8:54 AM 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)




















