User Tools

Site Tools


microsoft:cli:service_stop_start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
microsoft:cli:service_stop_start [2016/09/05 08:01] rpleckomicrosoft:cli:service_stop_start [2021/10/06 05:12] (current) rplecko
Line 4: Line 4:
 To get a list of the running services enter the command To get a list of the running services enter the command
  
-net start+  net start
  
-net stop <service name> +  net stop <service name> 
-net start <service name>+  net start <service name>
  
 A full list of the exact services is found in the registry (run regedit.exe) under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services key. A full list of the exact services is found in the registry (run regedit.exe) under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services key.
Line 13: Line 13:
 Alternatively, you can perform the stop and start using the name that is showed in the Services Control Panel applet by putting the name in quotes, i.e. Alternatively, you can perform the stop and start using the name that is showed in the Services Control Panel applet by putting the name in quotes, i.e.
  
-net stop "<service>" +  net stop "<service>" 
-net start "<service>"+  net start "<service>"
  
 2. 2.
 To get a list of the running services enter the command To get a list of the running services enter the command
  
-net start+  net start
  
 (you can add > \[filename\] to the end to make it output to a file, i.e. net start > services.lst). You can then try to shutdown each of them by entering the command (you can add > \[filename\] to the end to make it output to a file, i.e. net start > services.lst). You can then try to shutdown each of them by entering the command
  
-net stop "<service name>" ,e.g. net stop "spooler". Some services will ask you to enter a y to confirm, and for these just add /y to the end.+  net stop "<service name>"  
 +   
 +,e.g. net stop "spooler". Some services will ask you to enter a y to confirm, and for these just add /y to the end.
  
 You can also use the Resource Kit SC.EXE command, use You can also use the Resource Kit SC.EXE command, use
  
-sc query+  sc query
  
 to get a list of the services, and then to get a list of the services, and then
  
-sc stop <service name>+  sc stop <service name>
  
 to stop the service. to stop the service.
microsoft/cli/service_stop_start.1473062515.txt.gz · Last modified: 2016/09/05 07:01 (external edit)