Exchange NTBackup jobs fail from Task Scheduler (0x1f); OK when done manually

Posted on 2009-04-21
Last Modified: 2012-05-06
I have 3 jobs scheduled in the Task Scheduler on a Server 2003 Enterprise server.  All 3 are set to do full backups of Exchange Info Store using Backup Utility for Windows (NTBackup).  They are set to backup to a network drive (not tape).

If I run the job directly from NTBackup, it runs and succeeds, but the job in Task Scheduler fails with an exit code of 0x1f, both using the same login ID.  I've placed the task that was created using NTBackup in the code section here.

This problem has been posted several times in several places including once that I found on EE, but I have found no solutions.  Any help with this would be greatly appreciated.
C:\WINDOWS\system32\ntbackup.exe backup "@C:\Documents and Settings\Administrator.SEND\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\ExBackup-Mon.bks" /n "ExBackup-Mon.bkf created 4/20/2009 at 9:32 AM" /d "Set created 4/20/2009 at 9:32 AM" /v:yes /r:no /rs:no /hc:off /m normal /j "ExBackup-Mon" /l:s /f "X:\ExBackup-Mon.bkf"

Open in new window

Question by:GeoJono
    LVL 23

    Accepted Solution

    Try puting the line in batch file a calling it with task scheduler.
    You can also try using AutoIt to record the keystrokes and run that at the correct times.
    LVL 6

    Expert Comment


    This used to work for me but I stored the bks file somewhere outside the profile folder (C:\Backup in my case). I also did the above - create a batch file for it.
    LVL 6

    Assisted Solution

    Also - your X drive might not be available; better to use \\server\share or a local drive to start with (just for troubleshooting)

    Author Closing Comment

    Yes!  It works now.  I placed the command in a bach file and called that with the scheduler.  I also created a shared folder on the destination server and changed the command to write to the UNC path of the shared folder.

    Thanks to the both of you!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
    Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
    This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
    The viewer will learn how to install the Spideroak software to backup files. Start your default browser: In the URL location bar type and press enter: When you see the spideroak site, click the “Try for free” button in the upper ri…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now