Manage Windows Service
The Manage Windows Service action type controls Windows services using the AutoShell command line and scripting environment.
casa
The Manage Windows Service action type controls Windows services using the AutoShell command line and scripting environment.
The Details section of the action definition contains the following fields:
- Operation OptionsSpecifies the operation performed with the service.The Windows service status that the query service operation returns can be obtained only from the %STDOUT% parameter; it is not available from the Events table. This parameter is only valid for actions running in an action sequence.The following behavior differs from service management performed directly in Windows:
- Even if a service is in the "Stopped" status, it is possible to perform the Restart Service operation. The service status will change to "Started".
- If the service is in the "Started" status, and the Disable Service operation is performed, the service will be disabled and its status will change to "Stopped".
- Host NameDefines the name of the computer on which the service is running.
- User NameDefines the user name.
- PasswordDefines the password. Reenter the password for confirmation.
- Service NameDefines the name of the service for which the operation is performed. Type the name or use a text extracted from event messages.Check the Service name in the Properties dialog of the service in Windows. Do not confuse it with its Display name visible in the Computer Management window.
If you select
Change Service Startup Type
, complete the Startup Type
field. The Stertup Type field specifies the startup type that is set for the service. The options include Automatic, Manual, Disabled. The Boot option means that a device driver is loaded by the boot loader. The System option means that a device driver is started during kernel initialization.If you select
Change Service Dependencies
, complete the Dependencies
field. The Dependencies field defines the dependencies (other services, system drivers, or load order groups) that must be running before the service can be started. If you define multiple dependencies, separate them with a forward slash (/).If you select
Change Service Account
, complete the Local System Account / This Account
field. The Local System Account / This Account field specifies the account under which the service logs in. You can use the LocalSystem account or define an account here.