You can use user environment tasks to run commands before or after a profile archive import (Pre-Import or Post-Import) and before or after a profile archive export (Pre-Export or Post-Export).

About this task

Tasks run in the background, so they cannot be used to start applications or anything else requiring user interaction.

Procedure

  1. Start the User Environment Manager Management Console.
  2. Select a Flex configuration file and click the User Environment tab.
  3. Click Add and select Pre-Import Task, Post-Import Task, Pre-Export Task, or Post-Export Task.
  4. Enter a name for the settings definition.
  5. Configure the import and export task settings.

    Option

    Description

    Command

    The command to run. It can contain environment variables. If you specify a path starting with C:\Program Files, C:\Program Files (x86) or a localized equivalent, a button appears in front of the path. If you click it, you can convert the start of the path to %ProgramFiles% and resolve that variable to the 32-bit Program Files folder on 64-bit systems.

    Timeout

    (Optional) The amount of time FlexEngine waits for the command to complete. If the command does not complete during this interval, FlexEngine continues. If not configured, FlexEngine waits indefinitely for the command to complete. The Timeout setting is not available if Run asynchronously is enabled.

    Run once

    (Optional) If enabled, the task only runs once.

    Run asynchronously

    (Optional) If enabled, FlexEngine runs the command in the background, without waiting for it to complete. Not available for tasks that run before profile archive import or export.

    Note:

    For export tasks you cannot select Run once and Run asynchronously at the same time.

  6. Click Save.