Can't copy files to UNC Destinations if BAT file is called via scheduled task

后端 未结 5 1689
无人共我
无人共我 2021-02-02 01:52

I have a bat file copying files from current machine to mapped network drive (one line, xcopy command).

It works when I RDP to server. However, when I run as a schedule

5条回答
  •  感情败类
    2021-02-02 02:31

    I had a similar issue and instead of using net use I simply needed to store the password as part of the scheduled task. You'll notice that it says it only has access to local resources if it's ticked.

    Store password

提交回复
热议问题