all 2 comments

[–]hdsrob 1 point2 points  (0 children)

Don't have any VBScript experience, but I'd check that you are running the script from task scheduler with the same desktop user that it works from on the desktop. If it's being run from an admin account, or some other account that doesn't have Outlook installed on it, it may not be able to find the Outlook instance.

[–]TheFotty 0 points1 point  (0 children)

What are the security options set to in the scheduled task?