---
title: "Automate Add-On Execution"
description: "Schedule a daily task in Task Scheduler to run the Netwrix Auditor Add-on for ArcSight so ArcSight Logger receives the most recent audit data."
sidebar_position: 40
---

# Automate Add-On Execution

To ensure you feed the most recent data to ArcSight, Netwrix recommends scheduling a daily task for
running the add-on.

**To create a scheduled task**

**Step 1 –** On the computer where you want to execute the add-on, navigate to **Task Scheduler**.

**Step 2 –** Select **Create Task**.

**Step 3 –** On the **General** tab, specify a task name, e.g., Netwrix Auditor Add-on for ArcSight.
Ensure the account that runs the task has all necessary rights and permissions.

**Step 4 –** On the **Triggers** tab, **click** New and define the schedule. This option controls
how often audit data is exported from Auditor and transferred to ArcSight Logger. Netwrix recommends
scheduling a daily task.

**Step 5 –** On the **Actions** tab, click **New** and specify action details. Review the following
for additional information.

| Option                   | Value                                                                                                                                                                                                            |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Action                   | Set to "_Start a program_".                                                                                                                                                                                      |
| Program/script           | Input "_Powershell.exe_".                                                                                                                                                                                        |
| Add arguments (optional) | Add a path to the add-on in double quotes and specify add-on parameters. For example: -file "C:\Add-ons\Netwrix*Auditor_Add-on_for_HPE* ArcSight.ps1" -ArcSightHost 172.28.6.24 - NetwrixAuditorHost 172.28.6.15 |

**Step 6 –** Save the task.

After creating a task, wait for the next scheduled run or navigate to **Task Scheduler** and run the
task manually. To do this, right-click a task and click **Run**.
