I am running into an issue with the task scheduler service and I have found that restarting the Task Scheduler service should do the trick in fixing my problem. Unfortunately, I do not have the option in services.msc (as Administrator) to stop, start, or restart the service as the options are greyed out. I have also attempted to use both the "net" and "sc" utilities to stop and start the "SCHEDULE" service, but I keep getting an "Access Denied" error when I try to stop it. I really need to restart this service but I cannot bring down the machine today as it is a workday.
The server's OS is Windows SBS 2011 Essentials. Thanks in advance for any help in the matter.
The only way I could stop this service without rebooting the server was to run a command prompt using the service account. Do this I used PsExec from Sysinternals
In the new window I was able to issue the service stop command with no problem
I guess I could restart the service by finding the process ID on the service and killing it. This causes the service to go to a "Stopped" state. Then I used
SC
command (probablynet start
will work too) to start it successfully.Some points to consider:
Since the service is hosted by "svchost" process, killing the process will bring down many other services (in my case 11 services overall) all in the same time.
This is more of a forceful stop situation, not a graceful stop. So if the services are in the middle of something, they won't probably be happy.
After starting the task scheduler service, I was looking for the rest of the services to start, but I saw that all of those 11 services came back after a few seconds. So you don't need to worry about starting all of the services. (Although it might not be your case, better to be careful with system services)
I still don't know if I've caused any problems in my box, but everything seems to be fine.
As mentioned by HopelessN00b you will need to run the
NET
andSC
commands from anElevated Command Prompt
.I restarted SQL and an Exchange Database Store earlier on our SBS2011, also testing
SC STOP SCHEDULE
successfully.You cant exactly restart it even as admin, you the service is running under the system account.