> For the complete documentation index, see [llms.txt](https://docs.inogic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inogic.com/attach2dynamics/windows-tool/windows-task-scheduler/windows-task-scheduler-configuration.md).

# Windows Task Scheduler Configuration

Follow these steps to create and configure a scheduled task for Attach2Dynamics Data Migration.

**Step 1 – Download and Extract the Scheduler Tool**

Download the latest Attach2Dynamics Scheduler Tool and extract the downloaded package.

Locate the Scheduler Tool executable (.exe) on the computer where the scheduled task will run.

**Step 2 – Open Windows Task Scheduler**

1. Open the Windows Start menu.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F4P9PIo7ifTJJcbEZMuQo%2Fimage.png?alt=media&amp;token=8d299891-9128-4948-88db-457f20b8ede0" alt=""><figcaption></figcaption></figure>

2. Search for Task Scheduler.
3. Open Task Scheduler.

**Step 3 – Create a New Task**

1. Select Task Scheduler Library.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FNRIPbJ33azwJ41ls47Br%2Fimage.png?alt=media&amp;token=b624880c-4e04-4301-89e1-8cc203fa334c" alt=""><figcaption></figcaption></figure>

2. Under Actions, select Create Task.
3. On the General tab, enter a task name, such as Attach2Dynamics - Notes Migration.
4. Add a description if required.
5. Select the Windows account that should run the task.
6. Configure the security options according to your organization's policy.

**Step 4 – Configure the Trigger**

1. Open the Triggers tab and select New.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FAt5LogdgIuwdhZzusUHE%2Fimage.png?alt=media&amp;token=60776f0a-bcf1-4f7e-9704-0f660d06af3f" alt=""><figcaption></figcaption></figure>

2. Choose the required schedule, such as One time, Daily, or Weekly.
3. Set the start date and time.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FWcqjqZAN4LfURoSI0xxs%2Fimage.png?alt=media&amp;token=1b1ab160-a66a-420a-86ce-64ab983b3026" alt=""><figcaption></figcaption></figure>

4. Select OK.

Choose a schedule that avoids overlapping executions of the same migration.

**Step 5 – Configure the Action**

1. Open the Actions tab and select New.
2. Set Action to Start a program.
3. In the Program/script field, browse to the Attach2Dynamics Scheduler Tool executable.<br>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FVHt6W5dDJH5ZglQiz9iU%2Fimage.png?alt=media&amp;token=4a41cce1-cb27-403c-bc0a-03c37e8da87e" alt=""><figcaption></figcaption></figure>

4. In the Add arguments (optional) field, enter the complete command-line arguments. Refer to Section 2 for the supported commands.<br>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FgDcfhsN27rFAX92ZVDGN%2Fimage.png?alt=media&amp;token=f32bc469-1e94-4d2c-b9fe-7cc5c8a43a4f" alt=""><figcaption></figcaption></figure>

5. Select OK.

**Important:** Enter the executable path in the Program/script field and the command-line arguments in the Add arguments field. Do not combine them.

**Step 6 – Configure Conditions and Settings**

Open the Conditions and Settings tabs and configure the required task execution options according to your organization's requirements.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FId1L6iBvQsRuq9IZeybC%2Fimage.png?alt=media&amp;token=2e9b09c2-fdc5-47df-a40d-52b31095b130" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FXttbrnCMMaJFie04Ybdm%2Fimage.png?alt=media&amp;token=60225129-bfb5-4883-acdd-351c254d109f" alt=""><figcaption></figcaption></figure>

**Step 7 – Save and Run the Task**

1. Select OK to save the task.
2. Locate the task in Task Scheduler Library.<br>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FjA0voIMKr1rKIh9fn4MM%2Fimage.png?alt=media&amp;token=b0059748-2d9e-4815-a94d-f4d10a764343" alt=""><figcaption></figcaption></figure>

3. Right-click the task and select Run.
4. Review the Scheduler Trace logs to check the execution details.
5. Verify that the expected content was migrated to the configured destination.<br>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FyiRtDJPLFTVnXOrHmGED%2Fimage.png?alt=media&amp;token=92cfe9f1-3750-43c4-b8cd-1b586580a01b" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** A successful task launch does not necessarily mean that Data Migration completed successfully. Always review the Scheduler Trace logs to confirm the migration result.
{% endhint %}
