Re: Scheduled Tasks not running correctly in Win2k3

Tech-Archive recommends: Fix windows errors by optimizing your registry




"BenDVaughn" <BenDVaughn@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D16BC205-AB4D-4FEE-9D2C-5F5BB0B34BC8@xxxxxxxxxxxxxxxx
My scheduled tasks aren't running when the task's assigned user (admin
level)
is logged out despite the fact the "Run only when logged in" option is not
selected.

If I manually run the task it works correctly, being logged in as the same
user that the tasks should be running under. Also, if I am logged in at
the
time the scheduled tasks will run themselves correctly automatically.
There
are older tasks that continue to work properly but they use the same
permissions as the ones that aren't which doesn't make much sense to me.

It's a simple copy procedure and at first I was using NTBackup but when it
didn't work I thought I might simplify it by making a batch file to do the
job. When looking at the SchedLgU.txt log the exit code is "0" for
NTBackups
whether or not it actually performs the backup and the batch files get a
"0"
when working correctly or a "1" when they don't.

Any help would be greatly appreciated! I've tried basic steps like
deleting
the tasks and recreating them but with no success.

Your task will generate three logs:
- An entry in the Event Viewer
- An entry in the logger of the Task Scheduler
- A ntbackup log file

As a first step I recommand that you examine all three
entries. They are likely to tell you what's going on.

The next step is to ascertain whether the task runs or
not. It is a common mistake to assume that it does not
when in fact it does. Adding the following code to the
beginning of the batch file you invoke will tell you for sure:
@echo off
echo Job start on %date% at %time% under %UserName% >> c:\Log.txt


.



Relevant Pages

  • Re: Scripted backups..
    ... The error message is not in the batch file as all the lines go through fine. ... And here is a copy of the NTBACKUP log file. ... Active backup destination: File ... report which one of these lines generates the error you report. ...
    (microsoft.public.windows.server.general)
  • Re: back not backing up
    ... When you run ntbackup manually then you press certain buttons ... - Run this batch file from a Command Prompt. ... run the batch file via the Task Scheduler. ... lie in areas other than server management. ...
    (microsoft.public.windows.server.general)
  • ntbackup
    ... has anyone found out how to get ntbackup to actually work from ... ntbackup from a batch file is; ... Nothing is in the log file, even when the switch is set to log ... rem First it is copied onto the drive of the machine it is being ...
    (alt.os.windows-xp)
  • Re: ntbakup - backup to disk - switch /n. Dont work
    ... I ran this batch file to back up a folder to a single file: ... I then ran ntbackup and selected the "Restore" option. ... volume called "My Label" was clearly visible. ... > When you backup on tape, it is the real label of the tape (and never gave ...
    (microsoft.public.windows.server.general)
  • RE: Exit Code 1
    ... this is whatt I am calling from my Batch File ... that is sending back an error code of 1 to SMS. ... I am trying to install Java Runtime version 6 via SMS using a Batch ... Nonetheless I am getting an exit code error message. ...
    (microsoft.public.sms.swdist)