Mar 152008
 


Many times people forget what the services do or forget to restart the important ones. Services can be easily changed by creating batch files.

The important commands are the following

NET START – starts the service
NET STOP – ends the service

Before starting this we need to make sure which service you want to start or stop.

Go to Start—>Run type services.msc click ok

Once you get the services windows you can see each service name.

Stop Window Services using Batch file

The following one is just example

First you need to open a notepad enter the following commands and save as stopservice.bat

NET STOP “Error Reporting Service”
NET STOP “FTP Publishing Service”
NET STOP “Messenger”

The above commands stop the following services

“Error Reporting Service”
“FTP Publishing Service”
“Messenger”

The same way you need to start the services using the following procedure you need to open a notepad enter the following commands and save as startservice.bat

NET START “Error Reporting Service”
NET START “FTP Publishing Service”
NET START “Messenger”

The above commands start the following services

“Error Reporting Service”
“FTP Publishing Service”
“Messenger”

Incoming search terms:

  9 Responses to “Start or Stop Window Services using Batch file in Vista/XP/2003/2000”

  1. Hi, this is Rajasekaran from India, I need a small help about the Bat file. I want to automatically restart to sever by using bat file. Pls let me known the service is whether technical possible or not. If it is possible Pls give the cmd for the same. Thanks and Regards, D.Rajasekaran.

  2. try this

    just create a batch file and put the following command

    Shutdown -r -f -t 0 (This is for local computer)

    for network computer

    Shutdown -r -f -t 0 -m \\

    -r = restart
    -s = shutdown
    -f = forcibly
    -t = time in seconds
    -m = remote computer

  3. It doesn’t work in vista. Error 5 returns. The access deny.

  4. Cool! thx!!!!

    OliverNie:
    it does work, i used it with Vista. u jz need to right click on the notepad (which is now is a .bat file) and choose “Run As Administrator” :)

    good luck!

  5. Is there any way of doing this remotely? Say across LAN from your local machine for example and you trying to stop Windows Service running on a Windows 2003 Server.

  6. What about shutting down programs locally on your own machine using a batch script???

    TIA

  7. Please tell me,
    How can i stop windows 2003 services from client computer

  8. How can I run a batch file as Administrator via scheduled tasks?

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>