Jump to content

How do I kill Internet Explorer windows.


Recommended Posts

I use the pskill utility to kill several processess during my install. However, it doesn't seem to work on internet explorer. Several programs open up html pages during install. One of my programs won't install if internet explorer windows or open so my install stops and I have to close all the windows myself for setup to continue. How can I automattically kill all the internet explorer windows. I tried using pskill on iexplorer.exe, but it didn't work.

Link to comment
Share on other sites


I use the pskill utility to kill several processess during my install.  However, it doesn't seem to work on internet explorer.  Several programs open up html pages during install.  One of my programs won't install if internet explorer windows or open so my install stops and I have to close all the windows myself for setup to continue.  How can I automattically kill all the internet explorer windows.  I tried using pskill on iexplorer.exe, but it didn't work.

If there's no installation to supress the pages from opening, use AutoIt to write a script to close the window for you.

Link to comment
Share on other sites

Maybe this would work, you'll have to execute it right afterward's

Kill_IE.vbs

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
   & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
   ("Select * from Win32_Process Where Name = 'IEXPLORE.EXE'")
For Each objProcess in colProcessList
   objProcess.Terminate()
Next

EDIT: Unlike Greenmachine's exe he added this kill's all IE window's. Nice for those stupid site's also where they pop window after window.

Edited by maxXPsoft
Link to comment
Share on other sites

you can add this command after the process which opens the IE window

or before the process which stop if the IE window is opened

taskkill.exe /F /IM iexplore.exe

I hope that helpful

:)

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...