Re: Scheduled Tasks not running correctly in Win2k3
- From: "Pegasus \(MVP\)" <I.can@xxxxxxxxxx>
- Date: Fri, 29 Feb 2008 16:51:04 +0100
"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
.
- Prev by Date: ftp question
- Next by Date: Re: Robocopy a File?
- Previous by thread: Adding unallocated space options
- Next by thread: R2 or not R2, that is the question
- Index(es):
Relevant Pages
|