Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > General Discussion

Vista - at.exe (Task Scheduler) job lifetime on Vista

Reply
 
Old 07-03-2009   #1 (permalink)


Vista Enterprise Edition 32bit
 
 

at.exe (Task Scheduler) job lifetime on Vista

Hi folks,

I've been reading a lot in the forum lately but now I have to post as well...

I've been trying to get the old Task Scheduler (at.exe) running on Vista Enterprise to have scheduled jobs run indefinitively. Right now, I add a process via e.g.

$> at 15:00 notepad.exe

The job will start fine on the chosen time but will cease to run after 3 days (72 hours), killed by Vista/Task Scheduler.

A look via Start -> All Programs -> Accessoires -> System Tools -> Task Scheduler reveals, that a flag is set "Stop the task if it runs longer than" to "3 days".

Googling for help, I found a KB entry from Microsoft, how to change the default behaviour via a registry edit (A Task That Is Scheduled with the AT Command May Stop After 72 Hours Win XP/2000). This didn't do the trick on Vista Enterprise altough the registry section exists with the required parameter "AtTaskMaxHours").

Has anyone encountered similar issues on Vista or has anyone been able to overrule the default behaviour from 3 days to an "endless" job run?

Best regards,

John

My System SpecsSystem Spec
Old 07-03-2009   #2 (permalink)


Vista Bussiness x64 PL
 
 

Re: at.exe (Task Scheduler) job lifetime on Vista

Quote  Quote: Originally Posted by thedude View Post
that a flag is set "Stop the task if it runs longer than" to "3 days".
Just uncheck this option.
My System SpecsSystem Spec
Old 07-03-2009   #3 (permalink)


Vista Enterprise Edition 32bit
 
 

Re: at.exe (Task Scheduler) job lifetime on Vista

It's a bit tricky, the at job are scripted and will run right after the add to the job list and noone is there to uncheck it. Event if somebody could, it's tricky as well as it's greyed out and can't be unchecked.

I found a rather tedious workaround using jt.exe which I downloaded from microsoft.com. It schedules task and let me overrule the max lifetime right upon creation. Neither at.exe nor schtasks could do this out of the box.
My System SpecsSystem Spec
Old 07-03-2009   #4 (permalink)


Vista Bussiness x64 PL
 
 

Re: at.exe (Task Scheduler) job lifetime on Vista

I must say I don't understand problem - I can easy create task and I have easy way to check and uncheck this option.If I want any advanced limitation setting for this task -for example I want run this task in 100 days just only manualy type 100 days.My sheduler fully accept manually typed value.
Attached Thumbnails
taskschd4.jpg  
My System SpecsSystem Spec
Old 07-03-2009   #5 (permalink)


Vista Enterprise Edition 32bit
 
 

Re: at.exe (Task Scheduler) job lifetime on Vista

That's all good then, did you try adding it via the command prompt as I quoted? I did and I can't edit the settings anymore. Scripted means, another script is adding at jobs that way.
My System SpecsSystem Spec
Old 07-03-2009   #6 (permalink)


Vista Bussiness x64 PL
 
 

Re: at.exe (Task Scheduler) job lifetime on Vista

Quote  Quote: Originally Posted by thedude View Post
That's all good then, did you try adding it via the command prompt as I quoted?
No any command prompt!Open Task Schedule,create task,navigate to this option clik on field and manually type what do you want for example 100 days
My System SpecsSystem Spec
Old 07-03-2009   #7 (permalink)


Vista Enterprise Edition 32bit
 
 

Re: at.exe (Task Scheduler) job lifetime on Vista

I said I need to add the task via a script calling the command line interface of at.exe (not the GUI). I know that I can do this via the GUI but that's not the point at all.

It works using the jt.exe utility obtained from ftp://ftp.microsoft.com/reskit/win2000/jt.zip but it so far doesn't work using the old at.exe command line interface.
My System SpecsSystem Spec
Old 07-03-2009   #8 (permalink)


Vista Bussiness x64 PL
 
 

Re: at.exe (Task Scheduler) job lifetime on Vista

I think is possible to use PowerShell to this :PowerShell Script to Schedule a Task - Task Scheduler API - Ying Li(MVP) at myITforum.com

If it is not enough I suggest to create this thread here:PowerShell - Vista Forums
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Task Scheduler Compatibility module task status update failed General Discussion
Task Scheduler Error-task image corrupt or has been tampered with User_Feed_Synchroni General Discussion
Task Scheduler: Create task to open webpage? Vista General
Schedule a task with Vista task Scheduler wakes up computer and mo Vista General
Task scheduler returns an error : the task image is corrupt ortamp Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46