--installschedtask
Syntax
kenaflow.exe --installschedtask --account <account-name> --password <password>
Description
Legacy operation mode. Since version 5 kenaflow is installed and run as a Windows service (kenaflow.run.exe --install), see Autostart. Use the scheduled task only if you cannot use the Windows service. Do not use both at the same time.
This program mode registers kenaflow as a "Windows Scheduled Task". - Run taskschd.msc to open the task scheduler.
kenaflow.exe --installschedtask --account "MYDOMAIN\svc.kenaflow" --password "kr@ftwerk"
The registered task
- is named
\kenaflow-<instance-id>_run(the instance id is the one of the current kenaflow installation), - runs
kenaflow.exe --run --norestart(see--run), - is triggered every minute and at system startup (with a delay of 1 minute),
- runs in the background as the account specified with
--account. The password is required to register the task to run without manual logon.
The account is granted the "Log on as a batch job" right (SeBatchLogonRight).
An existing task with the same name is updated.
The program mode requires administrative permissions. If the console is not elevated kenaflow restarts itself with elevated permissions (UAC prompt).
By default this account will also be used to access SharePoint if a SharePoint related workflow has no own configuration for credentials!
Windows only.