Starting Programs Under Windows
The parameters Domain\User, Password, BATCH, and DESKTOP are important for starting Jobs under Windows. All these job attributes are defined in the Attributes page with only one exemption, the password. The password is read from the Login object.
This page includes the following:
Attributes
-
Domain\User
Windows user and domain
-
Password
-
BATCH (login type)
You can allow an interactive login type, or batch mode for a user. Example: If you want that a user should start Jobs in batch mode only, you must set the Log on as a batch job parameter. For details, see User Account Control in WindowsUser Account Control (UAC) in Windows
-
DESKTOP
Activate the View Job on Desktop option if particular user inputs are required for the job that should start. The process is then visible for any user who has logged on. This user can enter the required inputs. If this option is not active, but the process requires an input, the job will hang and can only be removed with the task manager.
System Dependencies
The following dependencies apply depending on the operating system you use, and the start type that is defined in the INI file of the agent:
- Agent on desktop
- Agent on desktop
- Agent as a service
INI-file definition: logon=0
The settings for User, BATCH and DESKTOP are irrelevant, the system starts on the desktop using the agent user's name and rights.
INI-file definition: logon=1
The login data that is stored in the Login object is used.
The desktop user must have the appropriate privileges such as a system user.
INI-file definition: logon=1
The login data that is stored in the Login object is used.
Notes:
- There is a difference between an interactive login type (UI), and a Win32 agent login type:
The agent does not load the job's user profile to the registry database. This means that a program that stores user-specific data in the registry, such as the UI that stores the latest login data, cannot access a this data through an AE Job.
- Start path:
The start path is a CreateProcess and CreateProcessAsUser parameter that is optional for the AE. However, CA Automic recommends always specifying it because if you do not specify it, the AE Job inherits the agent's start path.
Job Report
The program output after STDOUT and STDERR is the job report of a Windows Job. Usually, only console programs and most DOS programs create a job report.
See also: