I have some scheduled tasks that opens IE Windows on the background to execute periodic routines.
The problem is, as the day goes on, several IE instances are left executing on the background and this leaves less free memory to work on the server.
The tasks are configured to stop and kill still running instances when it starts and it's also configured to kill instances running for more than 1 hour. All this seems to not work.
I've tried to include a JavaScript window.close()
at the bottom of the page, but it didn't work. I suspect it's becouse of security settings that asks the user when there are non interactive scripts trying to close the window.
Q: Is there a way to close those windows after they have done it's work automatically?
Edit:
These are scheduled tasks in Windows Task Scheduler that executes Internet Explorer directly passing na URL to open.