Legacy
...
Passwork 5
Mapping LDAP security groups w...

Configuring Windows Server Scheduler

9min
💡 this is obsolete documentation for older versions of passwork (before 5 1 0) starting from version 5 1 0 passwork uses built in background task mechanisms for ldap synchronization windows task scheduler is a component of the windows operating system it is used to run certain scripts on the server at the right time, on a schedule passwork has a special script that synchronizes users in ldap groups c \intepub\wwwroot\wwwapp\tools\ldap mapping php it can be run manually or configured to run on a schedule using windows task scheduler we recommend that you first check how the script works in the manual mode to do this, run the following script at the windows command prompt for passwork 4 cd c \program files (x86)\php\v7 3 php exe c \inetpub\wwwroot\app\tools\ldap mapping php for passwork 5 cd c \program files\php8\ (or path for the installed php 8 0) php exe c \inetpub\wwwroot\app\tools\ldap mapping php the script will display information on the screen and write it to its log file c \inetpub\wwwroot\app\logs\ldap mapping log 💡 make sure that the user you are running the script from has write permissions to the logs folder configuring windows task scheduler in this example, we will show you how to configure the windows task scheduler to execute a script every 15 minutes you can set up a different frequency open the task scheduler by pressing the win + r keyboard shortcut and enter taskschd msc the scheduler window will appear on the panel on the right, select the "create task" command the task creation window will appear enter a name and description after that, choose how often you want to start the process by creating a new trigger on the "triggers" tab set the task to be performed daily every 15 minutes create a new action on the actions tab specify the path to the php exe executable file used on your system specify the file path c \inetpub\wwwroot\app\tools\ldap mapping php as an argument click "ok" the scheduler will launch the script in 15 minutes, the result of its work can be seen in the log file you can also select the created task and start it immediately 💡 we recommend deleting the log file before starting the scheduler for the first time windows task scheduler logs you can view the scheduler log in the event viewer in windows by the path "application and services logs → microsoft → windows → taskscheduler → operational"