IE - How to delete content with a batch/script file?


  1. Posts : 98
    Windows 10 Pro
       #1

    IE - How to delete content with a batch/script file?


    I've looked all over and was wondering if I could get some help here. I work where there are public machines, and we tell people NOT to use Internet Explorer, BUT only 10% of people actually adhere to this. That's life.

    I've noticed that with IE, when the computer crashes, or when IE isn't shut down properly, that the user's information is still stored onto the browser. So, lets say someone logs into Yahoo! Mail, the machine crashes, they leave, we unknowingly bring the machine back up and the next user uses IE to use Yahoo, they can end up seeing the previous user's E-mail content.

    It's impossible to teach every user to do things like Uncheck the "Remember me" boxes on each site or any options alike, so I was hoping there'd be a way to write a batch file to delete all browsing content. In otherwords, essentially do the same thing as selecting the option from within IE to delete all content on exit, except with a batch script that runs when the computer logs in to Windows.

    We actually only have a couple of Windows 10 machines, but we mainly have Windows 7 and Windows 8.1 machines, since we don't have all of the proper licenses for every machine to be upgraded, as well as the Windows 10 server. I assume any scripts would be more or less identical.

    Any help would be appreciated. Thanks!
      My Computer

  2.   My Computers

  3. lx07's Avatar
    Posts : 5,477
    1903
       #3

    Alternatively you could make a log on (or log off) script using the commands from here Clear IE7 Browsing History From the Command Line

    The command RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351 deletes everything but there are separate ones for cookies, passwords etc in the link.

    It is for Vista but seems to work in 10 as well. Certainly deleting history worked - I didn't test the other commands as I didn't actually want to delete my passwords etc so you'd have to try it.

    If you prefer you can delete the actual files and registry entries as described here : How to delete cookies, cache and history in all major browsers The advantage (or disadvantage depending what you want) of this second method is that while it is more complicated you don't get a box with a progress bar popping up saying "deleting history" like this

    IE - How to delete content with a batch/script file?-untitled.png
      My Computer


 

Related Threads
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:35.
Find Us




Windows 10 Forums