scheduled tasks errors with Mapped Drive

Get help for specific problems
Posts: 3
Joined: 24 Jul 2020

bishkev

I'm mirroring files from a mapped drive to a local folder. To be clear, the files in the mapped drive are the source files.
I'm running the scheduled task as a normal user. The drive is mapped to be persistent.

I can run this from the gui without issue.

When running from a scheduled task I'm getting the following errors:

Errors and warnings:


12:25:47 PM Error: Cannot find the following folders:
Z:\
___________________________________________
Cannot read file attributes of "Z:\".
ERROR_PATH_NOT_FOUND: The system cannot find the path specified. [GetFileAttributes]
12:25:47 PM Error: Source folder "Z:\" not found.



12:25:47 PM Error: Cannot find the following folders:
Z:\
___________________________________________
Cannot read file attributes of "Z:\".
ERROR_PATH_NOT_FOUND: The system cannot find the path specified. [GetFileAttributes]
12:25:47 PM Info: Comparison finished: 9 items found | Time elapsed: 00:00:00
12:25:47 PM Error: Source folder "Z:\" not found.

Any help is appreciated in how to solve this. Thanks in advance.
Posts: 3
Joined: 24 Jul 2020

bishkev

Hi all....I should also have noted that the regular user is a domain user....and the scheduled task works when run with a domain admin account.
Posts: 936
Joined: 8 May 2006

therube

If you use a UNC path (instead of mapped drive letter) for the regular user, does that work?
Posts: 3
Joined: 24 Jul 2020

bishkev

@therube...thanks for the suggestion. Worked like a charm.

Cheers.