[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2307
  • Last Modified:

Delete cookies from users workstations using group policy

Hi

I have a network with a server 2008 R2 domain controller and clients running Windows 7 Pro 64bit.

All clients use either ie8 or ie9.

Is there a simple way to delete all cookies and if possible temporary internet files(although not 100% necessary) after either closing the browser or logging out.

thanks
0
timb551
Asked:
timb551
  • 2
1 Solution
 
Paul SmartCommented:
There is software called CCleaner.
This allows the automatic deletion of both Cookies and Temporary Files.

I believe it can be located here > www.ccleaner.com
0
 
timb551Author Commented:
Yes i have used this software on many occasions but how would i do this using group policy?
0
 
Paul SmartCommented:
I guess best way then, would be to create a batch file with following commands.

@ECHO OFF
ECHO Deleting current user's Temporary Files, Cookies, History, Form Data and Stored Passwords
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
ECHO Done!

You can then incorporate this into a logoff script, and assign it to users by using Group Policy.

User Configuration>Windows Settings>Scripts (Logon/Logoff) > Logoff (better)

When user log off, all files are deleted.
0
 
AhmedHERMICommented:
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now