Set oWmi = GetObject("winmgmts:{impersonationlevel=impersonate}!\\.\root\cimv2"
query = "Select * from Win32_Process Where name = 'IEXPLORER.EXE'"
Set wql = oWmi.execQuery(query)
For Each item In wql
item.terminate()
next
Set wql = Nothing
Set owmi = Nothing
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.