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 x: 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 %systemdrive% 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 www.jsjcorp.com <http://www.jsjcorp.com> 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.