星期四, 十月 08, 2009

a good way to control the services

usually we control the services by manager.

but the listed in manager are not all.

the bellow example will show how to change the service state from regedit.

  1. Start the Registry Editor by pressing the Start-button and Run... this command:

    Regedit

  2. Browse through the left tree to where Services are found:

    [HKEY_LOCAL_MACHINE \System \CurrentControlSet \Services]



  3. Within the Services-key find go to the short-name of the wanted service (Here RpcSS aka. Remote Procedure Call (RPC)):

    [HKEY_LOCAL_MACHINE \System \CurrentControlSet \Services \RpcSS]



  4. Double-Click the Start-value in the list to the right.



  5. Change Value data: to the wanted state:
    • 0 = Boot
    • 1 = System
    • 2 = Automatic
    • 3 = Manual
    • 4 = Disabled
  6. Press Ok and exit the Registry Editor.
  7. If setting a service to Disabled or Manual, then execute this command to stop the service:

    Net Stop RpcSS

  8. If setting the service to Automatic, then execute this command to start the service:

    Net Start RpcSS

Note in this guide the short-name of a service is shown just in parenthesis next to the "Process Name".



没有评论: