Robocopy ERROR 5 (0x00000005) Getting File System Type of Destination with using Task Scheduler

0

I'm trying to copy a single file from a local location to a remote server location (on my local network). I have a script I wrote to accomplish this. If I run the script in a command window (running under the same user account as the one running the scheduled task) it runs perfectly fine. However, when I try to run it using Task Scheduler it give me the following error with Robocopy.

17:00:01 -------------------------------------------------------------------------------
17:00:01 ROBOCOPY     ::     Robust File Copy for Windows                              
17:00:01 -------------------------------------------------------------------------------
17:00:01 Started : Friday, August 10, 2018 5:00:01 PM
17:00:02 2018/08/10 17:00:01 ERROR 5 (0x00000005) Getting File System Type of Destination \\serverB\backups\test folder\
17:00:02 Access is denied.
17:00:02 Source : T:\my_folder_name\
17:00:02 Dest - \\serverB\backups\test folder\
17:00:02 Files : 20180810-162245.7z
17:00:02 
17:00:02 Options : /DCOPY:DA /COPY:DAT /MOV /NP /R:1000000 /W:30 
17:00:02 ------------------------------------------------------------------------------
17:00:02 2018/08/10 17:00:01 ERROR 5 (0x00000005) Creating Destination Directory \\serverB\backups\test folder\
17:00:02 Access is denied.
17:00:02   Moving file completed.

The directory on the remote server does not yet have the directories needed but Robocopy creates them with no issues IF I'm running the script manually (not in Task Scheduler).

Note: The share being used is a special type of share. It's actually a cloud storage solution setup. This should have no bearing on the error because it works perfectly fine when I run the script manually.

Any ideas?

file-permissions
robocopy
asked on Super User Aug 10, 2018 by Arvo Bowen

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0