|Working with scripts in the Task Scheduler / Predefined scripts for periodic tasks|
You can import an existing organizational structure into the SafeGuard Enterprise Database from an Active Directory. For further information, see Import or synchronize the organizational structure.
After you have imported the directory structure, you can schedule a periodic task for automatic synchronization between the Active Directory and SafeGuard Enterprise. For this task, you can use the predefined script ActiveDirectorySynchronization.vbs.
The script synchronizes all existing containers in the SafeGuard Enterprise Database with an Active Directory.
Before you use the script in a periodic task, you can edit the following parameters:
|logFileName||Specify a path for the script log file. This parameter is mandatory. If it is empty or invalid, synchronization does not work and an error message is displayed. By default, this parameter is empty. If a log file already exists, new logs are appended to the end of the file.|
|synchronizeMembership||Set this parameter to 1 to also synchronize memberships. If this parameter is set to 0, memberships are not synchronized. The default setting is 1.|
|synchronizeAccountState||Set this parameter to 1 to also synchronize the user enabled state. If this parameter is set to 0, the user enabled state is only synchronized at first synchronization. The default setting is 0.|
Once the rights are set correctly, apply the changes and restart the service: Switch to the server hosting the SafeGuard Enterprise web page. Open the Services interface by clicking Start> Run > Services.msc. Right-click SafeGuard ® Scheduler Service and click All Tasks > Restart.