To configure how a service starts: sc config servicename start= {auto|demand|disabled}
use auto for services that need to automatically start each time the computer is restarted.
use demand for services that need to be started manually.
use disabled for services that need to be disabled/prevented from starting..
To create a text list of running services use the command:
sc query > serviceslist.txt
To create a list of all services, use:
sc query type= service state= all > allserviceslist.txt
To start, stop, pause and resume services:
To start a service, type:
net start servicename
To stop a service, type:
net stop servicename
To pause a service, type:
net pause servicename
To resume a service, type:
net continue servicename
servicename Specifies the short name of the service.
To get the short name of the service from the descriptive name (Example for Remote Registry): sc getkeyname "Remote registry"
Download a list of short names for services: http://www.mediafire.com/?zfmyzd5yjzy
No comments:
Post a Comment