Srvany.exe: Applications as Services Utility Topics | Previous | Next
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:
- In Services in Control Panel, click the service, and then click Start.
-Or-
- Use the Sc.exe tool. At the command prompt, type:
sc start MyService
-Or-
- Use the net start command. At the command
prompt, type:
net start MyService
Stopping a Service
Stop a service by using one of the following methods:
- In Services in Control Panel, click the service, and then click Stop.
-Or-
- Use the Sc.exe tool. At the command prompt, type:
sc stop MyService
-Or-
- Use the net stop command. At the command prompt, type:
net stop MyService
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
- 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.
- Set the Startup Type to Disabled.
Removing a Srvany service
If you want to remove a Srvany service permanently, use the following
procedure.
- If the Srvany service is running, stop it.
- Run the following command:
instsrv MyService remove
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.