Task Scheduler won't run scheduled task

Discussion in 'Scripting' started by Bill Scherer, Apr 30, 2004.

  1. Bill Scherer

    Bill Scherer Guest

    I have batch file that I can run with no problems when I
    am logged onto the server locally or when using Remote
    Desktop (Windows Server 2003 Enterprise Edition).
    However, I receive an error when trying to run as a task
    using task scheduler.

    The server I am attempting to run the batch file on is a
    member server in a 2003 domain. I created a new Domain
    Admin account that also has the right to "log on as a
    service" and used this as the account to run the scheduled
    task. Whenever I attempt to run the task I receive the
    following error in the Application
    Event log:

    EVENT ID: 260
    Source: <Application I am running>
    Error loading Registry information

    The Security log shows the following Failure event:

    EVENT ID: 560
    Source: Security
    Category: Object Access
    Object Name: BaseNamedObjects\Crypt32LogoffEvent
    Image File Name: <The path to the batch file I am trying
    to run>
    Synchronize, Query Event State, Modify Event State
    Restricted SID Count: 0

    The Domain Admins group is a member of the local
    administrators group. The local admin group has full
    control on the folders where the batch file is stored.
    The local admin group also has full control on the
    Registry key that the application executed with the batch
    file created to store configuration infomation.

    The Scheduled task log shows the following:
    "CRL Update.job" (CrlUpdate.bat)
    Started 4/29/2004 12:31:38 PM

    "CRL Update.job" (CrlUpdate.bat)
    Finished 4/29/2004 12:31:38 PM
    Result: The task completed with an exit code of (0).

    Does anyone have any thoughts as to why this won't work?
    I have modified the default file permissions and the
    default Registry permissions, but administrators and
    System always retain Full Control. I also have Group
    Policy being applied on the server from the domain. Is
    there a particular User Right that I need to grant to the
    account used to run this task?
    Bill Scherer, Apr 30, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.