Task Scheduler Error - TechRepublic
Question
February 8, 2016 at 05:04 PM
robotech

Task Scheduler Error

by robotech . Updated 10 years, 3 months ago

I have a backup script (Robocopy) that looks like this:
@echo off
Echo “Copying files to Server1 …………….”
REM xcopy “Z:\*.*” C:\Users\Apps\ /c /s /r /d /y /i >> :\Users\Apps\taddxpercopy.log
ROBOCOPY C:\Users\Apps E:\LIVE /E /R:1 /W:1 /V /FP /MIR /SEC /SECFIXs

The batch file works just fine when I double click it, but when it is run as a scheduled task the result is: 0x2 with an Event ID of 102 and an operational code of (2), and apparently the backup is not successful. The ‘E’ drive is actually an external USB hard drive. The server is Windows 2012 Server R2

This discussion is locked

All Comments