Solved

Delete cookies from users workstations using group policy

Posted on 2011-09-12
4
1,721 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
  • 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now