Hi all,

I have written a custom vbscript which will call IE to get object. The script success get object and show on prtg. Only problem is that it would kill after the script completed.

We tried IE.quit but find it only work when user run it. IE.terminate is not work on vbs. If the script run by SYSTEM, then it would not work. Is anyone can share the experience for how VBS kill IE process opened by SYSTEM user? Thank you.


Article Comments

Hi cheukieli,

It's also possible to run the script as another user. This can be defined in the settings of the EXE/Script Sensor. The corresponding setting is called "Security Context".


Mar, 2020 - Permalink

Hi Moritz,

I just tried and find even changed the user to other, the script process by PRTG is also not terminated. I test IE.quit is work if we manually run on server, but if it is run by PRTG, then it will not close. Not sure what behavior cause the different


Mar, 2020 - Permalink

Hi,

I tested the following script and everything worked in the latest PRTG version:

Dim IE
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = 0
IE.navigate "https://google.com"
IE.Quit
Wscript.Echo "211:Quit_success"

Mar, 2020 - Permalink