Click here to Skip to main content
15,922,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello and Good Morning,

I'm running into an issue with Task Scheduler not running my task. I've run through the troubleshooting steps below and can't seem to get my task running.

Task Scheduler not running? Here’s how to fix it[^]

What I'm trying to do is creating a task that uses "NET STOP" and "NET START" on a system service for an application service located in Service.msc. It needs to restart every 5 minutes every day. I'm developing this workaround because the app's vendor doesn't know what's happening as to why the system service drops network connection.

Any ideas on this?

Thanks

What I have tried:

- Created task and using the SYSTEM account and run with highest privileges and to Run whether user is logged on or not.

- Trigger's every day every 5 minutes for a duration of indefinitely, it's marked as enabled,

- Actions are to NET STOP "Service" and another action right after NET START "Service"

- All is unchecked in the "Conditions" tab

- settings that are one here are "allow task to be run on demand", "Run task as soon as possible", "If task failed restart every minute", "attempt to restart up to 3 times", "stop of the task if runs longer than 1 hour", "If the running task does not end when requested, force it to stop".
Posted
Updated 11-May-21 3:49am
Comments
Member 15418280 8-Jul-22 0:18am    
We are using task scheduler to trigger event in a specific time and it is calling one api method which host in iis at the time of creation task scheduler we are sending userid and password but every month password is going to be change due to this task scheduler is not working. How can we fix this issue without entering new password?

1 solution

Looks like the task is working now. Seems like when a task is created for a "schedule", it'll wait 24 hours before it'll kick in.
 
Share this answer
 
Comments
Dave Kreskowiak 11-May-21 13:08pm    
There is no such requirement unless you specify a start time for the task or some other idle requirement or whatnot.
Member 15418280 8-Jul-22 0:18am    
We are using task scheduler to trigger event in a specific time and it is calling one api method which host in iis at the time of creation task scheduler we are sending userid and password but every month password is going to be change due to this task scheduler is not working. How can we fix this issue without entering new password?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900