Windows – SyncToy Failed in Task Scheduler

synchronizationwindows

I am trying to use the Microsoft SyncToy to sync files between two web servers.
I can run the sync job in both GUI and the command line mode.
Command:
"C:\Program Files\SyncToy 2.0\SyncToyCmd.exe" -R

But I can't run the same command successfully in task scheduler.
I get the following error messages:
*** Failed to execute folder pair upload_photos. Could not locate folder \photos\d$\Projects\warner\wwwroot\

What's the problem?
The permission issue? But I can run it manually.
Someone says that it's the user account issue with UNC path. What should I do?

Best Answer

At a quick glance it appears you have one of the following errors:

  1. \photos\d$\Projects\warner\wwwroot\ isn't a valid path. Either photos is a machine, so there should be a double back slash at the start, or it's a folder and should be after the drive letter.
  2. The permissions are incorrect for the user account under which the task is running.