Both in an elevated and un-elevated command prompt. You can incorporate this into a logoff script, and assign it to users by using Group. The search service is not able to connect to the machine that hosts the administration component. I've tried using 'RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1' to clear the history. RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 9 This will delete the files (+8) and history (+1) in one step.RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8Įrase “%LOCALAPPDATA%\Microsoft\Windows\Tempor~1\*.*” /f /s /qįor /D %%i in (“%LOCALAPPDATA%\Microsoft\Windows\Tempor~1\*”) do RD /S /Q Clear Google Chrome cacheĮrase “%LOCALAPPDATA%\Google\Chrome\User Data\*.*” /f /s /qįor /D %%i in (“%LOCALAPPDATA%\Google\Chrome\User Data\*”) do RD /S /Q Clear Firefox cacheĮrase “%LOCALAPPDATA%\Mozilla\Firefox\Profiles\*.*” /f /s /qįor /D %%i in (“%LOCALAPPDATA%\Mozilla\Firefox\Profiles\*”) do RD /S /Q “%%i”
Here is a command line batch script that takes care of all trash (as of April 2014):įor /D %%i in (“%TEMP%\*”) do RD /S /Q “%%i”įor /D %%i in (“%TMP%\*”) do RD /S /Q “%%i”Įrase “%ALLUSERSPROFILE%\TEMP\*.*” /f /s /qįor /D %%i in (“%ALLUSERSPROFILE%\TEMP\*”) do RD /S /Q “%%i”įor /D %%i in (“C:\WINDOWS\TEMP\*”) do RD /S /Q Clear IE cache – (Deletes Temporary Internet Files Only)
How to clear all trash & caches (without other private data in browsers). The RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2 command works like a charm but I want it to make it easy for the users to clean the cookies without having to run/remember any other commands.