[THIN] Re: IE cookie bloat

  • From: Dan Dill <DanD@xxxxxxxxxx>
  • To: "thin@xxxxxxxxxxxxx" <thin@xxxxxxxxxxxxx>
  • Date: Tue, 11 Jan 2011 11:28:19 -0800

I wrote a VBscript a bit back that uses environment variables to hit the 
cookies path to clean it which might be friendlier in certain circumstances, 
however is a bit more complex than using the FOR command.  It's here if you're 


I run it at log off.

The catch with profile bloat is that if you're hand-rolling it you have to also 
be aware of flash cookies, java cruft, the recent items folder, and various 
other pieces...

Dan Dill

From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of 
Jay Moock
Sent: Tuesday, January 11, 2011 11:06 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: IE cookie bloat

The first for will simply show you what will be deleted (so that you can verify 
it does what you want).  Be warned the list can be quite long.  May want to 
pipe it to a file and review.

The second commented out for will actually remove the files.

@echo off
net use x: \\server\share<file:///\\server\share>

for /d %%i in (*) do forfiles /p "%%i\cookies" /M *.txt /C "cmd /c echo @file" 
/D -90
::for /d %%i in (*) do forfiles /p "%%i\cookies" /M *.txt /C "cmd /c del @file" 
/D -90

net use x: /d


From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of 
Jason Benway
Sent: Tuesday, January 11, 2011 1:48 PM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] IE cookie bloat

We are still using standard basic MS roaming profiles. One of the things we've 
seen is IE cookie bloat, sometimes there are 10's of thousands of cookies in a 
profile if its been around for a while. I've thought about running ccleaner at 
logoff, but that deletes all cookies, is anyone running a script or software to 
deleted only cookies older than let's say 90 days?

Jason Benway
System/Storage Engineer

JSJ Corporation
700 Robbins Road
Grand Haven, MI 49417

This message may contain confidential and/or privileged information. If you are 
not the addressee or authorized to receive this for the addressee,
you must not use, copy, disclose or take any action based on this message or 
any information herein. If you have received this message in error,
please advise the sender immediately by reply e-mail and delete this message. 
Thank you for your cooperation.

GIF image

JPEG image

Other related posts: