Home All Groups Group Topic Archive Search About

Clear Internet History with Logoff script

Author
19 Jan 2007 5:20 AM
Johnmac
Hi all,
Just wondering what is the best way to clear out the history from IE6 when
the user goes to log off.  I am using 2003 server and GPO. Can someone direct
me or show me how to create a script to do this, if it’s possible of course?
And how do I apply the script in GPO?

Thanks,
John

Author
19 Jan 2007 7:38 AM
Alexander Suhovey
"Johnmac" <John***@discussions.microsoft.com> wrote in message
news:2FB1E065-EBFC-4D34-BAB4-5FFAEF12B708@microsoft.com...
> Hi all,
> Just wondering what is the best way to clear out the history from IE6 when
> the user goes to log off.  I am using 2003 server and GPO. Can someone
> direct
> me or show me how to create a script to do this, if it’s possible of
> course?

The easiest way is to delete browser history folder contents which is in
case of IE6 "%userprofile%\Local Settings\History". Following is untested
example of a script to empty this folder:

@echo off
set History="%userprofile%\Local Settings\History"
pushd %History%
rd /s /q %History%

Note that any automatic mass delete operations may be highly destructive if
not tested carefully.

> And how do I apply the script in GPO?

Well, this question is out of the scope of this group, isn't it. But here
you go:

- Open GPO in question
- Navigate to User Configuration\Windows Settings\Scripts(Logon/Logoff)
- Double-click Logoff in results pane to the right
- Click Show Files button and put your script to GPO folder, then close it
- Click Add, then Browse to select your script. Click OK several times.

You might also want to limit the scope of GPO so it applies only to users
you want to clear browser history for.

--
Alexander Suhovey