none
Task Scheduler result 0x4

    Question

  • Hi, I have a scheduled task that does something like the following:

            xcopy d:\folder\filename \\server\share\folder\ /y

    If I run this scheduled task with my domain admin ID in the job, it runs fine.  If I put in a service account we use, it fails with 0x4.  The service account is also a domain admin.  I have specifically given the account rights on the source and destination folders.  I have also give the service account the "logon as batch file" right on both servers.  What am I missing?  The source server (also where the task runs) is 2008 R2 and the destination is 2003.

    Thanks,
    Bob

    Tuesday, August 14, 2012 1:38 AM

Answers

  • Thank you both for your help.  I figured out what was wrong: the share permissions.  They allowed my ID but not the service account.

    Thanks again,
    Bob

    • Marked as answer by BobR2 Tuesday, August 14, 2012 2:51 AM
    Tuesday, August 14, 2012 2:50 AM

All replies