scheduled batch copy won't work

Michel, Hugo L 0 Reputation points

when copying files from mapped drive to local folder batch script works fine when manually executed but does not copy any when running on the scheduler. we're server r2019 and using SYSTEM as the user

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,150 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 29,191 Reputation points

    Granting SYSTEM access to local files on MachineA does not allow a process running as SYSTEM on MachineB to access those files. You would need to grant access to MachineB's active directory computer account, YourDomainName\MachineB$.

    The approach that I normally used was to create a local account with the same name and password on both machines. Give it a complex password and set it to never expire. Then grant that user access to the share and folder permissions on MachineA. On MachineB set the scheduled task to run as that account.

    You should also capture stdout and stderr for the scheduled task.

    0 comments No comments