Stopping and starting services using a scheduled task fails

Posted on 2011-10-02
Medium Priority
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

Jaroslav Mraz earned 1000 total points
ID: 36898827
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

ID: 36899131
Thank you

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction At 19:33 (UST) on Tuesday 21st September the long awaited email arrived with the subject title of “ANNOUNCING THE AVAILABILITY OF WINDOWS SBS 7 PREVIEW”.  It was time to drop whatever I was doing and dedicate as much bandwidth as possi…
The problem of the system drive in SBS 2003 getting full continues to be an issue, even though SBS 2008 and SBS 2011 are both in the market place.  There are several solutions to this, including adding additional drive space or using third party uti…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

850 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