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

  1.    #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 ComputerSystem Spec

  2.   My ComputersSystem Spec

  3.    #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

    Click image for larger version. 

Name:	Untitled.png 
Views:	0 
Size:	37.9 KB 
ID:	165201
      My ComputerSystem Spec


Related Threads
I have a PC and a couple of tablets that are all connected to the same OneDrive account. My original intention was that I edit the pictures on the PC and store them locally, but have them automatically uploaded to the cloud so that my tablets...
I am using Windows 10 Home on a HP i3 laptop. Just recently I have started receiving an error pop-up which says "Windows Script Host - There is no script engine for file extension ".js"". There doesn't seem to be a pattern to when the error...
Batch script question in General Support
Hello, I want make a batch script to delete a spefic folder on the C disk, but how can I get only that spefic folder? I got this: FOR /D %%p IN ("C:\USERS\%USERNAME%\Downloads\*.*") DO rmdir "%%p" /s /q cd C:\USERS\%USERNAME%\Downloads\ del...
Hi there forum, how do you change the Visual effects using a batch file or registry file. Thanks, Edward.
Hi i'm on Windows 10 on a 240gb ssd, I want to transfer to an WD caviar blue- I don't know if I should boot from the hdd, but when I plugged it in, it had all the old files from my...
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 19:53.
Find Us