scheduled batch copy won't work

Michel, Hugo L 0 Reputation points
2023-11-20T15:56:36.87+00:00

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 for business | Windows Server | User experience | Other
{count} votes

4 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    2 deleted comments

    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. MotoX80 36,401 Reputation points
    2023-11-22T21:13:01.9966667+00:00

    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.

    https://learn.microsoft.com/en-us/answers/questions/1123890/problem-with-task-scheduler-and-old-utility

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.