How to schedule a task X minutes after Windows Server 2003 starts?

Posted by Joe Schmoe on Server Fault See other posts from Server Fault or by Joe Schmoe
Published on 2012-06-02T19:43:32Z Indexed on 2012/06/02 22:43 UTC
Read the original article Hit count: 166

How to schedule a task X minutes after Windows Server 2003 starts?

In "Scheduled Tasks" one can specify "When my computer starts" but I see no way to specify delay.

What I am trying to achieve: there is a service (JIRA) that even though dependent on SQL Server service still doesn't wait long enough for SQL Server to become fully operational. So JIRA service fails to connect to the database and needs to be restarted manually after each server reboot. My plan is to add "SC stop" and "SC start" commands for JIRA service 3 minutes after server starts.

© Server Fault or respective owner

Related posts about windows-server-2003

Related posts about scheduled-task