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

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
UDSquareAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pawan KumarDatabase ExpertCommented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Pawan KumarDatabase ExpertCommented:
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

0
UDSquareAuthor 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 .
0
UDSquareAuthor Commented:
Is there any update on this ????
0
Pawan KumarDatabase ExpertCommented:
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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Chrome

From novice to tech pro — start learning today.