How to pause Windows task scheduler

Hello,
We utilize the Windows task scheduler for a number of frequent automated jobs.
However, from time to time we need to process a task that requires us to pause the task scheduler first so that a scheduled task does not fire in the middle of a manual process.  Before on our Win XP machine
We could pause the scheduler easily by opening the task scheduler, and using the option "Pause Task Scheduler but now in my new Windows & machine I don’t see this option. Is there a way to do this in Windows 7

Thanks
ahmad1467Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dsackerContract ERP Admin/ConsultantCommented:
You can issue the command:

net stop "Task Scheduler"
Then after you're done, issue the command:

net start "Task Scheduler"
Obviously, it requires elevation.
0
ahmad1467Author Commented:
Now would that be the same as pausing the task manager?
0
dsackerContract ERP Admin/ConsultantCommented:
It stops it temporarily. If you want to "pause" it in the proper sense, there is also:

net pause "Task Scheduler"
Then after you are done, issue the command:

net continue "Task Scheduler"
The "Task Scheduler" is a service. Stopping it will stop anything it is running. Pausing it will allow other tasks to run (and complete).

So you would choose on the basis of whether you need to stop it completely or allow anything else it is running to also run. But you have the advantage of both.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

ahmad1467Author Commented:
I tried the CMD and this is what I got.
C:\Windows\system32>net pause "Task Scheduler"
The requested pause, continue, or stop is not valid for this service.

More help is available by typing NET HELPMSG 2191.
0
NVITCommented:
How about...
1. Select desired tasks (Press Ctrl or Shift for multiple selections)
2. Right selection. Pick Disable
0
ahmad1467Author Commented:
It shows the option but they are grayed out.
0
dsackerContract ERP Admin/ConsultantCommented:
Well, this is interesting. Windows 7 (and on) has done a good job of blocking the stopping of the Task Scheduler. It seems if you really want to, you'll have to do it via the registry:

In regedit, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Schedule. Change the REG_DWORD called "Start" from 2 to 4. Restart and test.

Might want to do this in a box that doesn't matter first. :)
0
ahmad1467Author Commented:
I tired the regdit but know luck
0
dsackerContract ERP Admin/ConsultantCommented:
Did you restart the service or reboot the machine, then check if you could pause or stop via commands?

Also, remember to use elevated priority, although I'm getting a feel that Microsoft really doesn't want that being tampered with (grin).
0
McKnifeCommented:
Simple thing: use psexec with system rights like this:
1 download pstools which contain psexec
2 psexec -s -i net stop "task scheduler"
0
ahmad1467Author Commented:
How do I gain system rights would that be the same as administrator?
0
NVITCommented:
The -s switch in psexec runs NET.EXE as the Local System account.

> ...would that be the same as administrator?
If you mean local administrator... Yes and No.
Yes because you need at least local administrator to run psexec with the -S switch.
No because local system account doesn't have access to all items a local admin would have.

If you mean domain administrator... No. As with local admin, local system account doesn't have access to all items a domain admin would have.
0
ahmad1467Author Commented:
Thanks! Psexec worked but do you if there is a way to pause it?
0
NVITCommented:
Do you mean not stop the entire task scheduler service with NET STOP? But instead, you want to pause a certain task? If so, maybe schtasks is what you want.

Disable a Task from Running:
https://technet.microsoft.com/en-us/library/cc766529.aspx

https://social.technet.microsoft.com/Forums/windowsserver/en-US/f694b934-e2a7-44c8-a48d-ae13eec9aa4b/how-to-run-schtasksexe-to-disableenable-a-specified-task-without-giving-userid-and-password-just?forum=winserverManagement

Syntax and examples:
More Examples:
https://technet.microsoft.com/en-us/library/bb490996.aspx
0
ahmad1467Author Commented:
Before this windows 7 machine I had a windows XP system that ran task scheduler with about 20 different tasks that run probable ever 10 to 15 minutes. Most of the task are connected to data bases that get corrupt when they stop before the program completes but in the XP system under actions I had the option to pause all the task after they completed so I am just trying to get this function back.
0
McKnifeCommented:
Xp had no pause, but you disabled the tasks. You can do the same in win7. Right click a task and select disable.
0
ahmad1467Author Commented:
Sorry maybe I phrased it wrong but in XP there is this pause task option that allowed me to pause the task scheduler and would let any open task finish but wouldn’t let any new tasks start. I have attached a screenshot with that option.
2015-04-17-125949.jpg
0
McKnifeCommented:
Stopping the service is the same thing.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ahmad1467Author Commented:
Okay thanks I will give this a try.
0
ahmad1467Author Commented:
This worked out good
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.