tks for answer.
You were right -for some reason the sch task launched 64 bits version of cscript (inside the batch file the script was called like cscript SendMail.vbs)
I changed the batch file so the script is called like:
"C:\WINDOWS\SysWOW64\cscript.exe" SendMail.vbs
Now is working fine even when launched by the sch task ...
|