Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Scheduled task remains running, when run manually

16 Jan 2015   #1

Windows 7 Ultimate x64
Scheduled task remains running, when run manually

I have several tasks defined in the Task Scheduler. They're all working fine. They are written in the REXX language (about the only language I'm proficient in).

Yesterday, I made a small change to one of the scripts and ran it manually, from the Task Scheduler (to ensure that it ran correctly in the scheduler environment).

The script ran to completion, but the status remained "Running". I've spent the last 24 hours trying to work out why the task sticks at "Running", only to discover that closing and re-opening the Task Scheduler makes the status revert to "Ready".

It looks like the Task Scheduler is not updating the status, when the program exits. Is there anything I can do about this (I suspect the pragmatic answer is "ignore it").

Are my scripts supposed to do something to signal to the scheduler that they've terminated?

My System SpecsSystem Spec
19 Jan 2015   #2

Windows 7 Pro 32

There is probably nothing wrong from what you describe. Pressing F5 or Refresh from the Actions pane does the same thing as re-opening Task Scheduler. I've noticed the same thing and it seems the Task Scheduler GUI is just not updated so you have to do it manually.

If your scripts automatically terminate the process when they've finished then the only thing you might want to do is set an proper exit code (if you want). This can be seen in Task Scheduler in the column "Last Run Result" for every task. For windows batch files this is how to do it: Exit - Terminate a script | Windows CMD |
0 is the default exit code. If I terminate a batch file with Ctrl+C it will instead show 0xC000013A as Last Run Result.
My System SpecsSystem Spec
20 Jan 2015   #3

Windows 7 Ultimate x64

Thanks, Tookeri

Now my only problem is remembering that F5 is "Refresh". As far as I can see, there's nothing to tell me. It would be nice if there were an entry under "Actions" such as "Refresh (F5)" to remind me.

Perhaps my browsers will help me. I've always used Ctrl+R to refresh/reload webpages; now I can use F5 instead. Wonderful!

I like to learn something new each day, and here it is, 06:50 in the morning and I've already got my new fact for the day. :)
My System SpecsSystem Spec


 Scheduled task remains running, when run manually

Thread Tools

Similar help and support threads
Thread Forum
Does disabling a service stop a scheduled task from running?
this is probably a dumb question, but if a service is disabled (HKLM\System\CurrentControlSet\Services), will that stop the scheduled task from running also? what if set to 'manual'?
Performance & Maintenance
Scheduled Task history indicates task completed successfully but....
Hi, New here. I'm using a Scheduled Task to fire a very simple bat file that pulls, compresses and pushes a set of files to a different network directory. The bat file runs fine manually. On a networked desktop I have set up the task to run at about 5am est (waking the machine), as highest...
Performance & Maintenance
MSE - Latest release - can Vir-sig updates be scheduled manually?
Hi people Does the latest version of MSE allow for a manual update schedule to be created by the user or is it still limited to the Windows auto-update facility, which may also download & install unwanted MS apps along with the virus signatures? Cheers. Ich.
System Security
Scheduled Task not running
Scheduled Task not running when "run whether user is logged on or not" option is selected? Is this an issue/bug in windows 7?
General Discussion
Scheduled backup cancelled, yet can run manually
On the backup and restore management screen, it says ‘backup cancelled’. I had setup on a regular weekly schedule. Go to manage backups, I see backups through out 2011. The last one 12/2011. The last backup field says ‘Never’…yet backups exist. Short of it, I cannot find the reason backups...
Backup and Restore

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 07:09.
Twitter Facebook Google+