Scheduled task gets deleted/missing

C

compsosinc

Using XP Pro SP2. I setup a scheduled task to run a batch file (*.bat)
daily at 7am. The task runs fine but eventually it gets deleted from
the Scheduled Tasks. The first time it was deleted/missing, it had ran
for 2 weeks, and I thought someone else had accidently deleted it. Now
it is deleted/missing again, and it ran for over 3 weeks.

Any ideas?

Thanks
 
P

Pegasus \(MVP\)

Using XP Pro SP2. I setup a scheduled task to run a batch file (*.bat)
daily at 7am. The task runs fine but eventually it gets deleted from
the Scheduled Tasks. The first time it was deleted/missing, it had ran
for 2 weeks, and I thought someone else had accidently deleted it. Now
it is deleted/missing again, and it ran for over 3 weeks.

Any ideas?

Thanks

Task are stored in c:\windows\tasks. They get deleted by
human intervention or by malicious code, not by Windows.
You could home in on the culprit by creating another task
that runs the batch file below once every five minutes. It
would tell when your task gets deleted.
@echo off
if exist c:\Windows\tasks\MyTask.job (set deleted=No) else (set deleted=Yes)
echo %date% %time:~0,5% Job deleted? %deleted% >> c:\test.log

Replace "MyTask" with the name of your disappearing job.
Examine c:\test.log every day until the problem occurs again.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

MS Scheduled Task 11
Task Scheduler Stopped Working 21
I need help with a scheduled task... 1
scheduled task 1
Scheduled Task using shutdown -f -s problem 7
Scheduled Tasks 2
scheduled tasks 9
Scheduled Task 5

Top