Saturday, February 7, 2009

How to Start and Stop Services using command promt

First take command prompt
(start >> run - type "cmd.exe" click "ok")

to stop a service "xyz" type
net stop xyz
syntax: net stop (servicename)

to start the service type
net start xyz
syntax: net start (servicename)

The service name for a particular executable file can be found in the registry
to view the service list in registry
First open "regedit.exe"
(start>> run - type "regedit.exe" click "ok")

goto the path "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services"
suppose you have to find a service that run a executable file "xyz.exe"

search by the file name "xyz.exe" ( ctrl + f3 to take search)
the search result will
be









"Display Name" is "service name"

to stop this service,
the command is "net stop servicexyz"


No comments: