Knowledge Base > Automation Engine and Target Systems > Windows > Starting Programs Under Windows

Starting Programs on Windows

Attributes

The following parameters are important when you start jobs on Windows:

Domain

Windows domain in which the user is defined.

User Name

The Windows user nameName of the Automation Engine user..

Password

The user's passwordA secret combination of characters for a Automation Engine user..

BATCH (login type)

You can allow a user to use particular login types. The login types interactive and batch can be used. For example, if a user is only allowed to log on via batch, this user can start jobs only in batch mode. The parameter BATCH must be specified in this case.

DESKTOP

This option should be specified if the job that should start expects particular user inputs. The process is then visible for any user who is logged in. This user can enter the required user inputs.

If this option is not specified and the process requires an input, the job hangs and can only be removed by using the task manager.

Attributes are defined in the attribute cards of the job.

Attention

System Dependencies

Depending on the operating system and the agent's start type, there are the following dependencies that apply:

Agent

INI File User BATCH DESKTOP

Agent on desktop 

logon=0 1. 1.

1. 

Agent on desktop 

logon=1 2. 2.

2. 

Agent as a service 

logon=1 3. 3.

3. 

  1. Irrelevant, the system starts on the desktop using the user's name and rights.
  2. Is used - The desktop user must have the appropriate privileges (such as a system user).
  3. Is used.
  4. Note the following peculiarities:

Strategy for Jobs on Windows

Windows distinguishes four program types.

  1. Programs with a graphical UserInterface (32-bit and 16-bit GUI programs).
  2. 32-bit console programs.
  3. Old DOS programs.
  4. Operating system commands (not a real program, for example, DIR, SET etc.).

Types 1 and 2 (GUI and console programs) should be started from the command line if possible. The advantage is that AE can retrieve the correct program exit code.

Type 3 and 4 (DOS programs and OS commands) can only be started through a BAT file. The job ends correctly or incorrectly using the Job Messenger mechanism.

Automic recommends testing the BAT file or the command line on the target system before you start the job via the AE. Use the user who should later execute the AE if possible.

Using  graphical programs can always cause unexpected user dialogs (message box). Automic recommends using the option DESKTOP for test runs.

Job report: The program output after STDOUT and STDERR is the job report of a Windows job. Usually, only 32-bit console programs and most DOS programs create a job report.