Share via

Task Scheduler Error

Anonymous
2016-02-09T12:27:45+00:00

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

Windows for home | Other | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

0 additional answers

Sort by: Most helpful