Responding to events in the DMC (actions)

Actions can also be configured and used in the DriveLock Operations Center (DOC). For more information, see Actions.

The DriveLock Agent can not only send event messages to various destinations but also trigger a local response to an event. For example, an action can run a program or script or take a picture using a webcam connected to the computer.

Actions can be assigned to events and alerts after the corresponding action definitions have been created.

Creating an action definition

To create a new action definition, right-click Action definitions and select New... from the context menu.

The following action types are available:

  • PowerShell script: Runs a specified PowerShell script, optionally with parameters from the triggering event.

  • Batch script: Runs a batch script through the command processor, optionally with parameters.

  • Command line execution: Starts an executable file, optionally with parameters.

  • Show awareness campaign: Displays a defined awareness campaign when the event occurs.

  • Take picture using webcam: Creates a recording when the event occurs and transmits it along with the event. Use this option carefully, as frequently occurring events can generate large amounts of data.

Action definitions are configured in a dialog with multiple tabs.

Under General, enter a name and, optionally, a comment.

Under Script or Command line, specify the script or command to run, including any required parameters. You can enter the command line directly or select an executable file or script. To use the Insert parameter button, you must first define the corresponding parameters under Parameters.

Use the Computers, Networks, and Times tabs to define conditions for running the action. For example, you can restrict an action to specific computers and specify that it runs only when connected to the corporate network and outside regular office hours.

Click OK to save the action definition. It then appears in the list of action definitions.

Assigning an action to an event

To run an action when a specific event occurs, open the configuration for that event and add the previously created action definition.

The action runs when the event occurs and the conditions defined for the action are met.