Skip to main content

May 20, 2026 Archived

Configure Logon and Logoff Tasks

Configure the commands that run when users log in and log out.

Procedure

  1. Start the Dynamic Environment Manager Management Console.

  2. Open the User Environment tab.

  3. Select Logon Tasks or Logoff Tasks and click Create.

  4. Enter a name for the settings definition.

  5. Configure the logon and logoff task settings.

    Note: Logon and Logoff tasks run "invisibly" so they cannot be used to start applications and do not support user interaction.

    OptionDescription
    CommandThe command to run. Can contain environment variables.
    Elevated taskTo use an elevated task as a logon or logoff task, select Elevated task and select a preconfigured elevated task. This is a convenient alternative to the Command option. Note:
    1. Dynamic Environment Manager does not prevent you from deleting, disabling, or renaming elevated tasks that you have selected to run from a logon or logoff task.
    2. Do not configure Timeout or Run asynchronously settings for the elevated task if you want to run the elevated task from a logon or logoff task.
    Timeout(Optional) The amount of time FlexEngine waits for the command to complete. If the command does not complete during this interval, FlexEngine continues, while the command keeps running in the background. If not configured, FlexEngine waits indefinitely for the command to complete. The Timeout setting is not available if Run asynchronously is selected.
    Run task Before/AfterSpecifies whether the task runs before or after profile archive import, for logon tasks or export, for logoff tasks.
    Run onceIf selected, the command only runs once.
    Run asynchronouslyIf selected, the FlexEngine runs the command in the background, without waiting for it to complete. This option is not available for tasks that run before profile archive import or export.

    Note: For logoff tasks, you cannot combine Run once and Run asynchronously.

  6. Click Save.

Was this page helpful?

Provide feedback for this topic

Was this topic helpful?

Please do not include any personal or confidential information.

Generating link…