Re: Scheduled Tasks

From: Pegasus \(MVP\) (I.can_at_fly.com)
Date: 10/29/04


Date: Fri, 29 Oct 2004 09:10:36 +1000

There was a similar post in a different newsgroup a few days ago.
The OP ultimately resolved his problem by using at.exe to
schedule his jobs, instead of the Task Scheduler. It may be
necessary to change the Service Account in order for such
tasks to be able to access network resources - use the
Advanced pull down menu in the Task Scheduler.

To schedule a task to run every 10 minutes under at.exe:

for /L %h in (0,1,23) do for /L %m in (0,5,55) do at %h:%m
/every:m,t,w,th,f,s,su c:\tools\sometask.exe

(unwrap line)

"Howard Hartman" <postmaster@neteast.com> wrote in message
news:e%23fm6LQvEHA.3840@TK2MSFTNGP12.phx.gbl...
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Thanks for your reply.
>
> Yes, I did check that. If that was not set correctly, the task wouldn't
run
> at all.
> This is a monitoring task that runs every 10 minutes around the clock. It
> has
> worked fine for up to 6 hours, then fails. Once it fails, it does not
> succeed again
> until I intervene and reset the password.
>
> I've seen Microsoft Knowledge Base article 811155 which describes this
event
> log
> error as it relates to starting service. It does not talk about scheduled
> tasks failing,
> however I have a feeling the cause may be the same.
>
> Howard
>
> "Pegasus (MVP)" <I.can@fly.com> wrote in message
> news:Obx90mPvEHA.2536@TK2MSFTNGP11.phx.gbl...
> >
> > "Howard Hartman" <postmaster@neteast.com> wrote in message
> > news:%23heYtfPvEHA.3896@TK2MSFTNGP09.phx.gbl...
> >>
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> >> - -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> >> Hello.
> >>
> >> I have an unusual problem on three Windows 2000 servers.
> >>
> >> Each of these servers runs the same set of scheduled tasks which work
> >> fine
> >> for a few hours.
> >> After a few hours, however, the scheduled tasks stop running and fail
> >> with
> >> "Could Not Start".
> >>
> >> The event log shows that the scheduled tasks are failing because "The
> >> user
> >> has not been granted the
> >> requested logon type at this machine".
> >>
> >> I've tried removing the tasks completely and rebuilding them and that
did
> >> not solve the problem.
> >>
> >> Just resetting the password to what it currently is for the user in the
> >> scheduled task properties is
> >> enough to get the task working again for a few hours.
> >>
> >> This server is Windows 2000 SP4.
> >>
> >> Does anyone have an idea of what to look at or how to fix this?
> >>
> >> Thanks.
> >>
> >> - -----BEGIN PGP SIGNATURE-----
> >> Version: PGP 8.0.3
> >> Comment: Digital signature guarantees authenticity
> >>
> >> iQA/AwUBQYD9hN/hBQ7O4WklEQI+RwCgg0N+BC/jtbCpSY+kyzkQgBzyLKoAn1Hg
> >> /VLFWQ0AHRdw6PWwP0GgDvjw
> >> =v3sR
> >> - -----END PGP SIGNATURE-----
> >>
> >> -----BEGIN PGP SIGNATURE-----
> >> Version: PGP 8.0.3
> >> Comment: Digital signature guarantees authenticity
> >>
> >> iQA/AwUBQYD9nN/hBQ7O4WklEQIejgCglILtjoiYtxDcw29WmSBXfDv/qG8AoMoA
> >> 0Ni4Gm5ql+RT/+q1KA0WUzof
> >> =vTFg
> >> -----END PGP SIGNATURE-----
> >
> > Did you check if your policy allows the selected account
> > to log in as a batch job?
> >
> >
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 8.0.3
> Comment: Digital signature guarantees authenticity
>
> iQA/AwUBQYEQIt/hBQ7O4WklEQIxAQCgzBIE/ma3Zzr4QVGhRmyK7nJ9dSMAnRHI
> He4f1pI088bjrj/555ln9E4T
> =IuVO
> -----END PGP SIGNATURE-----
>
>



Relevant Pages

  • Re: Combining templates
    ... Elevators to be exact. ... schedule our jobs based on the General contractors schedule. ... and template type (meaning what type of elevator are we installing). ...
    (microsoft.public.project)
  • Re: Have fun with managing Data Protector schedules
    ... > schedule information) to automatically start backup jobs. ... The GUI would have to guess the rules from the current configuration. ...
    (comp.sys.hp.hpux)
  • Re: Viewing properties of scheduled backup job
    ... I think your looking under the Maintenance Plans node. ... under the scheduled jobs node. ... > If i right click a database, schedule a backup, it does ... >>setting schedule options. ...
    (microsoft.public.sqlserver.tools)
  • Re: Resource View ???? Help Please?
    ... the schedule can show completion on time is by entering overtime hours, ... comes in on the weekend and knocks off a few of the jobs that werent ... the jobs causing the peak in his resource graph) ... Take the standard resource graph - peak view. ...
    (microsoft.public.project)
  • Re: Veritas 9.1 cant schedule jobs after full restore of server
    ... does not use the Task Scheduler to run any jobs. ... > | then installed Veritas. ... Did the restore in AD restore mode etc. ... When I schedule a job BE says not in time window. ...
    (microsoft.public.win2000.general)