I am using one batch file to copy files from one server to another server. That batch file run fine when I run it manually, but I run the same batch file using task scheduler am getting below error.
ERROR 5 (0x00000005) Getting File System Type of Source \\Server ame\c$\ProgramData\DStt\ Access is denied.
But same script run fines when I run it manually. Script has been scheduled with admin user & admin user have access to both server.
robocopy /XC /E /R:2 /W:2 /copy:DATS /NDL /NP \\Server\c$\ProgramData\DStt C:\ProgramData\DStt > "D:\Apps\DStt\syncDStt_AppData_Server.log"
User contributions licensed under CC BY-SA 3.0