start/stop services

Posted on 2003-03-16
Medium Priority
Last Modified: 2012-06-27
I would like to ask ,  how to write a windows script or command-line in order to start/stop the services in administrative tools
Question by:cheng77
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

blakogre earned 300 total points
ID: 8149973
Go to start/programs/administrative tools and select Services

Double click on a service, and note the name.

In your batch file, add a line:

to stop a service:
net stop <service name>

and to start a service:
net start <service name>


Expert Comment

ID: 8201258
I agree with blakogre. Make sure you save it as a batch file.

Expert Comment

ID: 10610226
Just to same time the service should be in double quotes. eg...

C:\>net stop "Microsoft Exchange Event Service"
The Microsoft Exchange Event Service service is stopping..
The Microsoft Exchange Event Service service was stopped successful

C:\>net start "Microsoft Exchange Event Service"
The Microsoft Exchange Event Service service is starting.
The Microsoft Exchange Event Service service was started successful

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

762 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