I have a command file (.bat) I run to copy some files from my Windows 11 PC to another PC. When I double-click the .bat file on my PC, it runs and successfully copies the files. When I run it using Task Scheduler, it runs the command file but no files are actually copied. I piped the output...
batch file
credentials
destination path
mapped drives
network shares
permissions
remote copy
run whether user is logged on
runwithhighestprivileges
script directory
source path
start in directory
system account
task scheduler
unc path
windows 10
windows 11
working directory
xcopy