共用方式為


Start, stop, pause, resume, or restart a service

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

To start, stop, pause, resume, or restart a service

  • Using Services

  • Using the command line

Using Services

  1. Open Services.

  2. In the details panel, do one of the following:

    • Click the service, and then, on the Action menu, click Start, Stop, Pause, Resume, or Restart.

    • Right-click the service, and then click Start, Stop, Pause, Resume, or Restart.

Notes

  • To open Services, click Start, click Control Panel, double-click Administrative Tools, and then double-click Services.

  • To start a service with startup parameters, right-click the service, click Properties, type the parameters in Start parameters, and then click Start. These settings are not persistent; they are used only once, and then the default settings are restored. (A backslash (\) is treated as an escape character; type two backslashes for each backslash in a parameter.)

Using the command line

  1. Open Command Prompt.

  2. Type one of the following:

    • To start a service, type:

      net startservice

    • To stop a service, type:

      net stopservice

    • To pause a service, type:

      net pauseservice

    • To resume a service, type:

      net continueservice

Value Description

net start

Starts a service.

net stop

Stops a service.

net pause

Pauses a service.

net continue

Continues a service that has been paused.

service

Specifies the name of service.

Notes

  • To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command Prompt.

  • To view the complete syntax for these commands, at the command prompt, type:

    net helpcommand

  • For more information about these commands, see Related Topics.

Caution

  • If you stop, start, or restart a service, any dependent services are also affected. Starting a service does not automatically restart its dependent services. For more information, see View service dependencies.

  • Changing the default service settings may prevent key services from running correctly. It is especially important to use caution when changing the Startup type and Log on as settings of services that are configured to start automatically.

  • In most cases, it is recommended that you not change the Allow service to interact with desktop setting. If you allow the service to interact with the desktop, any information that the service displays on the desktop will also be displayed on an interactive user's desktop. A malicious user could then take control of the service or attack it from the interactive desktop.

Important

  • To improve performance and security in the Windows Server 2003 family, several services have been disabled by default that were previously enabled on Windows 2000. For a table that lists the default settings and provides information about how to enable these services, see Default settings for services. Note that these settings apply only to new installations, not upgrades; all previous service configurations are preserved during upgrades to the Windows Server 2003 family.

Notes

  • To perform this procedure, you must be a member of the Administrators group on the local computer, or you must have been delegated the appropriate authority. If the computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure. As a security best practice, consider using Run as to perform this procedure.

  • Some services, such as Remote Procedure Call (RPC), Event Log, and Plug and Play, cannot be stopped by using the Service snap-in or the net stop command. These services are required for the operating system to function properly.

Information about functional differences

  • Your server might function differently based on the version and edition of the operating system that is installed, your account permissions, and your menu settings. For more information, see Viewing Help on the Web.

See Also

Concepts

Configure how a service is started
Net start
Net stop

Other Resources

Net pause
Net continue