Srvany.exe: Applications as Services Utility Topics | Previous | Next

Starting and Stopping a Service


Services are configured to start automatically or manually. If a service is configured for automatic startup, it is started by the system when the computer is started. For services configured for manual startup, you can start them in the following ways.

Starting a Service Manually

Start a service manually by using one of the following methods:

Stopping a Service

Stop a service by using one of the following methods:

Caution When the service is stopped, it stops the application by calling the Win32 TerminateProcess() API, which does not allow the application to prompt the user to save changes. For this reason, the application should be closed before the service is stopped.

Stopping a Service Indefinately

  1. For Windows 2000: In Start|Programs|Adminstrative Tools|Computer Management|Services, click the service then right-click the mouse and select Properties.
    For Windows NT: In Start|Settings|Control Panel|Services, click the service, then click Startup to display the Startup dialog box.
  2. Set the Startup Type to Disabled.

Removing a Srvany service

If you want to remove a Srvany service permanently, use the following procedure.
  1. If the Srvany service is running, stop it.
  2. Run the following command:
    instsrv MyService remove

 

note-icon

Note

This procedure removes only one instance of Srvany. It is possible that Srvany.exe is still being used to run other applications as services.