---
title: "Setting up a Schedule Task for Backing Up IOP Activity Files."
slug: "setting-up-a-schedule-task-for-backing-up-iop-activity-files-"
updated: 2025-09-09T10:56:53Z
published: 2025-09-09T10:56:53Z
canonical: "support.controlup.com/setting-up-a-schedule-task-for-backing-up-iop-activity-files-"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.controlup.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting up a Schedule Task for Backing Up IOP Activity Files.

IOP activity files fill up your hard drive and you do not want to archieve them manually? Then this article is for you! We have a backup script that does this for your automatically. The following guidelines show you how to create a Windows task that runs our Powershell backup script automatically.

          **Note**

          

This article is relevant for On-Premises customers only!

### Prerequisites

1. You must set up the scheduled task on your IOP server.
2. You must run the task scheduler as the IOP Admin user. This is the admin user that you set up in the [IOP deployment](/insights-on-premises-virtual-appliance-installation-version-86)
3. You need 7-Zip or the command line version 7za.exe installed. You can download 7-Zip from [here](https://www.7-zip.org/download.html).
4. Download and save the script attached to this article to your IOP server.

### Instructions

1. Press **Windows + R** and type **taskschd.msc**.
2. In the Actions pane on the right, click **Create Task**.
3. In the Create Task wizard, provide the following information in the **General** tab:

**Task Name**. This name will be displayed as the task name. **Description**. A short description that describes the task's functionality.

Check **Run whether user is logged on or not** and **Run with highest privileges** You can configure the task to be configured for your OS. ![Create Task window](https://cdn.document360.io/098100b7-b9da-4bea-b4b9-017140ab863e/Images/Documentation/360004473438mceclip0.png)
4. In the **Triggers** tab, click **New**. Configure the scheduler according to your needs. Here, we want the task to be executed every midnight. ![New trigger popup](https://cdn.document360.io/098100b7-b9da-4bea-b4b9-017140ab863e/Images/Documentation/360004473738mceclip0.png)
5. In the **Actions** tab, click **New**. Under **Action**, select the **Start a program** In the **Program/script** field, type **PowerShell** **Add arguments** will be based on your choosing. The script includes a synopsis which explains how to use the script. In this example, we archive the activity files in the configured activity file share and remove the original files to save space in the backup directory:

```
   C:\Archive-Files.ps1 -username admin -password P@ssw0rd -DeleteSource
```

**Start in** is optional but over here since the script is located in **C:**, I've placed it as a pointer. ![edit action popup](https://cdn.document360.io/098100b7-b9da-4bea-b4b9-017140ab863e/Images/Documentation/360004473978mceclip1.png)
6. Press **OK** to get prompted to enter the **credentials** of the user that you set up in Step 3. ![task scheduler p0pup](https://cdn.document360.io/098100b7-b9da-4bea-b4b9-017140ab863e/Images/Documentation/360004474078mceclip2.png)

To test if everything is working, right-click the task and select **Run**.

[Archive-Files.ps1](https://cdn.document360.io/098100b7-b9da-4bea-b4b9-017140ab863e/Images/Documentation/Archive-Files.ps1)
