Can't copy files to UNC Destinations if BAT file is called via scheduled task
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 scheduled task, and configure it to run under the same user I'm logged in, it doesn't work and give error 0x4. Is there a way I can achieve this? I also try dsynchronize and it works when I click synchronized. When I run it as service same issue. Imran I was able to figure it out. Following batch files works under scheduler, even as local system account: net use m: \\server\share /U:server\user password xcopy C:\source m: /E /Y It maps