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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shutting down active IE session at specified time 1

Status
Not open for further replies.
Aug 6, 2004
271
GB
Hi,

through ISA i have a rule saying that after a certain time 9sat 10am) internet access to any address is restricted and users are redirected to a page with explanations on it. This works perfectly apart from one thing - if a user has a web page open before 10am then after this time if they hit refresh it will simply refresh the page. I was wondering if there is a way, either through GPO or some other way, to end/disconnect IE sessions
 
One way to do it is to have a batch script that terminates the Internet Explorer session.

Download the kill.exe from Windows 2000 resource kit Windows 2000 Resource Kit tools link

Then all you need to do is in your script something like

kill IEXPLORE.EXE

Make sure you either specify the path to the kill.exe file or put it somewhere thats already is in your path.

Now schedule your batch script to run at a certain time.

---
Make the best use of what is in your power, and take the rest as it happens.
 
Any chance you could elaborate more on the script? Not done many scripts in the past

I could easily put the kill.exe on a network share, would that work?
 
Duh forgot something that Windows XP has a builtin program to kill tasks.

So I would create a batch file looking like this
-------------------------------------
@ECHO OFF
taskkill /IM IEXPLORE.EXE
-------------------------------------
give it a name that you understand then schedule your scheduler to run the batch file at the time you want it to run. Make sure that you run the command with a user with enough rights or you might have problems killing tasks.

---
Make the best use of what is in your power, and take the rest as it happens.
 
Thanks alot Jump1ng, will give it a whirl and let you know how it goes.
 
OK and happy killing.

I noticed when I tried it out that it seems to kill EVERY instance of Internet Explorer that is open so even if the computer is running several instances they should all get killed with that one command.

---
Make the best use of what is in your power, and take the rest as it happens.
 
Thanks again Jump1ng - works no probs. How would i use it for win2k clients as taskkill isnt usable in that environment?
 
For windows 2000 I would download the above mentioned kill.exe file and then change the batch script to use kill.exe instead.

If you don't copy the kill.exe to folder that is in your path statement you need to give it the correct path ie

c:\blabla\blabla\kill.exe -F IEXPORE.EXE

But if you copy the kill.exe to your system32 folder just change the taskkill /IM to kill -F and it should work the same.

---
Make the best use of what is in your power, and take the rest as it happens.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top