Start/stop a service using command line

Last update on April 29, 2009 09:21 AM by netsa77
Published by netsa77

Start/stop a service using command line






The netsh tool (netsh.exe) can automate the startup or shutdown of a service through the following command line:
  • To start a service:


Net start name_of_service
  • To stop a service:


Net stop name_of_service




This requires administrator rights (or PowerUser).


If you do not have administrator rights, you can still put a pause and restart:
  • Pause a service:


Net pause name_of_service
  • Continue a service:


Net continue name_of_service
Best answers for « Start/stop a service using command line » in :
Enable/disable a device from the command line Show Enable/disable a device from the command line Install Devcon Display all the devices in the system Enable/disable the device Other devices Here is a trick that allows you to enable / disable a device from the command line in XP....
[Linux]Restarting the network interface using command lines Show [Linux]Restarting the network interface using command lines When setting up a network, specially if you need to verify that a DHCP server assigns IP addresses correctly, restarting the network interface using command lines rather than the...
[Windows XP] Repairing the network connection using command line Show [Windows XP] Repairing the network connection using command lines Under Windows XP there is a small feature allowing you to repair a network connection. Go to the Network Connections options in Control panel (Control Panel / Network...
List of open ports in command line ShowList of open ports in command line Whether you're running Windows or Linux / Unix, the following command in (console) will display the list of open ports on your computer: netstat -a For the use of advanced graphics tools, see What...
Enabling/Disabling the firewall using command line ShowEnabling/Disabling the firewall using command line Disable Windows XP firewall Enable the Windows XP firewall Under Windows XP SP2, it is possible to enable/ disable the firewall with the following command lines: Disable Windows XP...
[Disinfection] How to delete an infected service? Show[Disinfection] How to delete an infected service? Deleting through HijackThis Remove using the command line During disinfection, you may have to remove a service belonging to an infected malware. Some methods of removal. ...
Download Avira AntiVir Personal free for Linux / FreeBSD / OpenBSD / Solaris ShowFor Linux / FreeBSD / OpenBSD / Solaris Avira AntiVir PersonalEdition Classic is a very good and free antivirus which reliably protects your private computer against dangerous viruses, worms, Trojans, rootkits and costly dialers.
Download HFS (Http File Server) ShowHFS is a ultra-simple way to share files with friends. · Launch HFS · Slide above it the file to be shared. And that’s all ! The directory is accessible from any browser. It is ultra-simple and no installation is necessary (HFS is only...
Network tests and diagnostics ShowTesting the IP configuration Before doing anything else, you are advised to check the computer's IP configuration. Windows systems offer a command-line tool, called ipconfig, that lets you find out your computer's IP configuration. The output of...
Linux - The shell ShowIntroduction to the shell The command interpreter is the interface between the user and the operating system, hence the name "shell". The shell therefore acts as an intermediary between the operating system and the user thanks to command lines...
Linux commands ShowTable of main Linux commands Command Description DOS equivalent ls lists the content of a directory dir cd change directory cd cd .. parent directory cd.. mkdir creates a new...