Scheduled tasks failing to run after 1st run

Posted on 2006-05-24
Last Modified: 2010-04-18

We have a windows 2003 server setup and have been trying without success to get backup scheduled tasks to run, and now after testing, any scheduled tasks to run. Problem: when we setup any scheduled task (we are logged in as the administrator) e.g. to open Calculator it will run fine the first time it is supposed to run, and then the next day at that time it will fail. the logs have the following entry:

Calculator.job" (calc.exe) 5/24/2006 3:13:00 PM ** ERROR **
      The attempt to log on to the account associated with the task failed, therefore, the task did not run.
      The specific error is:
      0x80070569: Logon failure: the user has not been granted the requested logon type at this computer.
      Verify that the task's Run-as name and password are valid and try again.

We have definatly entered the correct username and password, which is valid as its the admin account we use to login tothe machine. We have recreated many test tasks - all fail in the same way after the 1st run. We have made the scheduled tasks service interact with desktop, the task properties to wake the machine.

Any help greatly appreciated.
Question by:cpearsona
    LVL 32

    Expert Comment

    Try this:

    Don't use the Control Panel to schedule your jobs. Instead, use the AT command from a command prompt.
    It is quite easy to use, and some documentation is here:;en-us;313565&sd=tech

    e.g. to schedule a bat file named backit.bat to run at 5:00 AM every morning, you would type:

            c:\> AT 05:00 /every:M,T,W,Th,F,S,Su c:\backup\daily.bat

    See if this solves the problem.

    LVL 16

    Expert Comment

    I'm not sure if AT is in windows 2003 anymore.  I believe "schtasks" replaced it.  Why not run it under the system account instead of a regular account?

    LVL 32

    Expert Comment

    AT is still there, but schtasks should do the same thing. The main idea is to run it under the system account, which is what AT does by default.

    (sorry about the typo in my example above, it schedules the file named daily.bat, not backit.bat, of course)
    LVL 1

    Author Comment

    cheers for the info - will be testing to day and know tomorrow. will keep you posted
    LVL 1

    Author Comment

    Hi all, have run the bat file via the AT command and it just results in the task status saying 'running' with the backup program not actually launching or completing the task, no matter how long it is left for. If i run the bat file manually it works as expected however.
    LVL 32

    Accepted Solution

    It might be waiting for some user input, or some other error condition. The way to verify this is as  follows:

    Create a second .bat file, say test.bat, and in that put just these two lines:

    cmd /c "c:\backup\daily.bat" > "c:\backup\daily.log"

    (for example)

    Then, schedule the test.bat file with the AT command. If it gets stuck, examine the daily.log file to see the results or reasons.


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
    I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    728 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

    16 Experts available now in Live!

    Get 1:1 Help Now