Internet Cache and Temporary files need to be set to be cleared on exit.

UDSquare
UDSquare used Ask the Experts™
on
We need to create GPO for below settings :-

Chrome, IE and Edge set to the following:
Cache Cleared on Exit.
Need to leave History, and leave cookies and leave passwords and forms alone.

please advice GPO settings
AD server is 2012 R2
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Database Expert
Awarded 2016
Top Expert 2016
Commented:
Please try this-
::Internet Explorer

@echo off

REM Cookies:

REM RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2

REM RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

::Firefox

@echo off

taskkill /im "firefox.exe"

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

::Google Chrome

@echo off

set ChromeDir=C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data

del /q /s /f "%ChromeDir%"

rd /s /q "%ChromeDir%"

Msg * "Cookies have been cleared"

Open in new window


https://community.spiceworks.com/topic/1181450-batch-file-to-clear-all-browsers-cookies
Pawan KumarDatabase Expert
Awarded 2016
Top Expert 2016

Commented:
Another option could be a tool(from the same link) -- CCleaner.
>>Install CCleaner on every machine or Deploy it via GPO (Like I did)
>>Create this script and make it being scheduled on logon

@echo off
if exist "%programfiles(x86)%\CCleaner" (
start /d "C:\Program Files (x86)\CCleaner" CCleaner.exe /AUTO
)

if exist "%programfiles%\CCleaner" (
start /d "C:\Program Files\CCleaner" CCleaner.exe /AUTO
)

time /T >> %appdata%\CCleaner_history.txt

exit

Open in new window

Author

Commented:
Internet Cache and Temporary files , Needs to be cleared on browser exit. we don't want to clear everything, we just need to clear   Internet Cache and Temporary files for Chrome, IE and Edge .

Author

Commented:
Is there any update on this ????
Pawan KumarDatabase Expert
Awarded 2016
Top Expert 2016
Commented:
Please try this --

Open your group policy...

Go to User Configuration->Policies->Administrative Templates->Windows Components->Internet Explorer->Internet Control Panel->Advanced->Empty Temporary Internet Files folder when browser is closed

Old EE DB - https://www.experts-exchange.com/questions/21962385/Clearing-Temporary-Internet-Files-on-browser-exit-using-Group-Policy.html#a17368111

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial