Stopping and starting services using a scheduled task fails

Posted on 2011-10-02
Last Modified: 2012-05-12
I can manually run C:\WINDOWS\system32\netdotexe Stop (or Start) "Service Name" and services stop/start as they should.
I have scheduled these commands to stop/start using the windows task scheduler and I tried testing the schedules by doing a right click and run.
They both fail to stop/start the services.
I have made sure I specified admin password when setting up the tasks.
Please advise on possible reason for tasks failing to run as scheduled tasks.
Question by:stevenvel
    LVL 15

    Accepted Solution

    you must do it from BATCH script .bat

    Use the Task Scheduler to schedule this batch file:
    @echo off
    net start "Some Service"
    net stop "Some Service"

    and run of bat script get in sheduler this works for everything shedlued for me :)

    Author Comment

    Thank you

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    The SBS 2011 release date (RTM) is supposed to be around Christmas, 2011.  This article is a compilation of my notes -- things I have learned first hand.  The items are in a rather random order, but I think this list covers most of what is new and d…
    The articles for turning off the Client firewall policy on the internet are for SBS 2008 and don't really help for SBS 2011. They actually moved the Client firewall policy. In 2011, the client firewall policy has moved to the SBS computers conta…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now