Automatic Active Directory Synchronization via Task Scheduler
To start automatic synchronization of Active Directory with OptimiDoc it is necessary to proceed with the following steps:
1. Start the PowerShell as an administrator.
2. Run the "Set-ExecutionPolicy RemoteSigned" command and confirm

3. Start the Windows Task scheduler from the Start menu or by running the command control schedtasks

4. Select Create task... in Actions

5. Enter the Name, select the option Run whether user is logged on or not and check the Do not store password option.

6. Select the Triggers tab and click on the New... button and define the schedule of synchronization, Confirm by clicking on Ok.

7. Select the Actions tab and click on the New... button. Select the action Start a program, enter the program "powershell" and put the arguments -c ". '<optimidoc_install_path>\Support\ad_sync.ps1'". Afterwards confirm the settings by clicking on the Ok button.

8. Save the task by clicking on the Ok button.

9. (Optional) In the case of changed password of administration please change it also at <optimidoc_install_folder>\Support\ad_sync.ps1 file.
