Solved

Delete cookies from users workstations using group policy

Posted on 2011-09-12
4
1,972 Views
Last Modified: 2012-05-12
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
Comment
Question by:timb551
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 5

Expert Comment

by:Paul Smart
ID: 36521790
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
 

Author Comment

by:timb551
ID: 36521792
Yes i have used this software on many occasions but how would i do this using group policy?
0
 
LVL 5

Accepted Solution

by:
Paul Smart earned 250 total points
ID: 36521819
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
 
LVL 6

Expert Comment

by:AhmedHERMI
ID: 36521821
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question