Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically removing cookies 1

Status
Not open for further replies.

Palagast

Technical User
Dec 16, 2002
228
NL
Hello people,

What's the easiest way to automatically remove all cookies from all users from the pc? The best option would be to remove all cookies per user when they log off, but this isn't a Windows feature.
Any clue?

Thanks in advance
 

Just put this in a bat file

RD /S /Q %USERPROFILE%\Cookies
Use group policy
User configuration
Windows Settings
Logoff Script
Point to the bat file.
 
1stITMAN, thanks for your reply.
Though, I stumbled onto this page before, this is not what I am searching for. The author of this page suggests settings to secure your pc by preventing cookies. I don't mind cookies being accepted, I just want them gone when I close my browser (or something that looks like this scenario).
 
SYAR2003, thanks for your reply.
I guess this is a good way to do it, was hoping to do it w/o policy but you're absolutely right: simple and effective.
Here's a star for ya.
 
I looked at the possibility to have it as a sheduled task also.
But that only give the possibility to run it at startup.
With GPO usage it could be user logoff.
So the files would be gone when switching users,
more privacy that way.

There is more locations you could empty also:
%SYSTEMROOT%\Temp%USERPROFILE%\Recent"%USERPROFILE%\Local Settings\Temp\"
"%USERPROFILE%\Local Settings\Temporary Internet Files\"
"%SYSTEMPARTITION%\Documents and Settings\Default User\Recent\"
"%SYSTEMPARTITION%\Documents and Settings\Default User\Local Settings\Temp\"
"%SYSTEMPARTITION%\Documents and Settings\Default User\Local Settings\Temporary Internet Files\"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top