when the scripts is run by at or by scheduled tasks, it is run by default with the system account
who is a local account and has no access to networks resources.

if your script needs network resource, you should specify a domain account.
_________________________
Christophe