Войти

Показать полную графическую версию : [решено] Как закрыть IE (Kerio NTLM)


Страниц : 1 [2]

Charg
03-12-2018, 14:33
В общем вопрос решился с помощью ссылки El Sanchez
Итоговый вариант выглядит так

Set IE = GetObject("new:{D5E8041D-920F-45e9-B8FB-B1DEB82C6E5E}")
' explanation for the row above:
' https://blogs.msdn.microsoft.com/ieinternals/2011/08/03/default-integrity-level-and-automation/


IE.Visible = False ' set true for debug
IE.ToolBar = 0 ' set 1 for debug
IE.StatusBar = 0 ' set 1 for debug


IE.Navigate("https://kerio:4081/login")
' login process, must be in intranet zone in Internet Explorer

WScript.Sleep(5000)
' wait for kerio to successfully redirect us on webstatistics page

IE.Quit
' close IE

Iska
03-12-2018, 16:29
Charg, только вместо простого Sleep'а лучше попробуйте пару вышеуказанных (http://forum.oszone.net/post-2843311.html#post2843311) конструкций.




© OSzone.net 2001-2012