Recently I wrote a couple of scripts to clear the browsing history and cache for IE, Firefox and Chrome Internet Explorer (Powershell)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
$t_path_7 = "C:\Users\$env:username\AppData\Local\Microsoft\Windows\Temporary Internet Files" $c_path_7 = "C:\Users\$env:username\AppData\Local\Microsoft\Windows\Caches" $d_path_7 = "C:\Users\$env:username\Downloads" $temporary_path = Test-Path $t_path_7 $check_cache = Test-Path $c_path_7 $check_download = Test-Path $d_path_7 if($temporary_path -eq $True -And $check_cashe -eq $True -And $check_download -eq $True) { echo "Clean history" RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1 echo "Clean Temporary internet files" RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8 (Remove-Item $t_path_7\* -Force -Recurse) 2> $null RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2 echo "Clean Cache" (Remove-Item $c_path_7\* -Force -Recurse) 2> $null echo "Clean Downloads" (Remove-Item $d_path_7\* -Force -Recurse) 2> $null echo "Done" } |
Firefox (batchfile)
|
|
@echo off set DataDir=C:\Users\%USERNAME%\AppData\Local\Mozilla\Firefox\Profiles del /q /s /f "%DataDir%" rd /s /q "%DataDir%" for /d %%x in (C:\Users\%USERNAME%\AppData\Roaming\Mozilla\Firefox\Profiles\*) do del /q /s /f %%x\*sqlite |
and Chrome (batchfile)
|
|
@echo off set ChromeDir=C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data del /q /s /f "%ChromeDir%" rd /s /q "%ChromeDir%" |
[…]
Lees verder… from Script to clear browsing history and cache for IE, Firefox and Chrome