Hi all, I have a batch which runs flawlessly from a prompt. It synchronises local folders to a share on a NAS. Now that I try to automate it with an FFS Batch I get in to trouble. Win Task Scheduler seems to run the task with bad credentials so the batch is waiting for folders which aren't generated.
I tried mounted drive vs UNC path. I tried to pass use a NAS account within the task (which doesn't work) .. and some other bright ideas .. which have proven to not to be overly bright.
Can anyone give me a hint how I can backup local folder to my NAS with FFS?
daniello
Task manager doesn't have the right credentials
- Posts: 2
- Joined: 31 May 2020
- Posts: 2430
- Joined: 22 Aug 2012
> Win Task Scheduler seems to run the task with bad credentials
So, run the batch job with correct credentials.
For a new task, checkmark to "Open the Properties dialog for this task when I click Finish" before clicking Finish;
for existings tasks, select the task in the Task Scheduler, and then click Properties for the selected item
(right bottom side).
In the Properties window you find the Security options, where you can change the user account for running the task via the Change User or Group button.
So, run the batch job with correct credentials.
For a new task, checkmark to "Open the Properties dialog for this task when I click Finish" before clicking Finish;
for existings tasks, select the task in the Task Scheduler, and then click Properties for the selected item
(right bottom side).
In the Properties window you find the Security options, where you can change the user account for running the task via the Change User or Group button.
- Posts: 2
- Joined: 31 May 2020
Yes but neither the local user - which can run the task fine via command line works - nor can I use a NAS user in that field - since it only accepts local accounts.
I did find a workaround in the meantime. I made a cmd file with the call and when I use this from a task with the local user it works.
I did find a workaround in the meantime. I made a cmd file with the call and when I use this from a task with the local user it works.