Link to home
Start Free TrialLog in
Avatar of leticiaruiz
leticiaruiz

asked on

Scheduled Task Robocopy /Mon terminates unexpectedly

Greetings all;

I have 2 load balanced 2003 SP2 servers, and I have set up Robocopy as a Scheduled Task to keep their web content synchronized.  Here are the options I'm using:

robocopy D:\web \\node02\d$\web /COPY:DATS /R:10 /W:3 /MIR /MON:1 /NDL /FFT /NJH /NJS /TS /NP /LOG+:D:\logs\Robocopy\web.log

Scheduled Task: Run at system startup

Under "settings"
"Stop the task if it runs for X hours/minutes" is not checked.
Neither are the "Don't start the task if the computer is running on batteries" or "Stop the task if battery mode beings" options.


My issue is that the process will end unexpectedly; twice it has terminated (both times during a weekend, although I'm not sure that is relevant.)  I have tried running with the credentials of both a service account with rights to both machines, and as my own domain administrator account, but both times it stopped unexpectedly.

When it ends, in the Application Event log, there will be a 1517 event with the name of the account it was using to run - "Windows saved user DOMAIN\Username registry while an application or service was still using the registry during log off."

 I have found that if I configure it to use my credentials and I leave myself logged in to the machine, Robocopy won't end, but I would prefer not to do that.

What do I need to do to keep Robocopy running perpetually?
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial