Vbscript that logs into a Webpage won’t work when run from Task Scheduler

تبليغ
سؤال

يرجى شرح بإيجاز لمإذا تشعر أنك ينبغي الإبلاغ عن هذا السؤال.

تبليغ
‎إلغاء

My Vbscript works fine when I run manually from windows server 2016. It brings up a webpage where I use sendkeys to enter the id and password to login. When I schedule the same script to run from Task Scheduler it doesn’t login successfully. No error messages in the log. I run with highest privileges.

I verify success by serching for specific text on window
Specific code:

if instr (IE.document.body.innerText,StrString) then
‘Wscript.echo “I have found the following text: ” &my_url
else
Call Mail()
end if

Any ideas?

‫أضف إجابة

تصفح
تصفح

مجهول يجيب