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

后端 未结 5 1675
无人共我
无人共我 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:11

    Who maps the network drive? And are you using the mapped name, instead of the underlying UNC native path? Because it sounds like the mapped drive is setup in your login script, which doesn't run if you're not logged in. So, in a scheduled task, you do have the correct credentials for the UNC path, but no mapped drive letter.

提交回复
热议问题