Legacy
...
Administration
Background tasks
Configuring Windows Task Scheduler
6min
task scheduler is an inbuilt utility that allows you to automatically run programs or scripts on a set schedule or when specified conditions occur in passwork starting from version 5 1 0 there is a special script that synchronises users powershell c \intepub\wwwroot\passwork\app\tools\run scheduled tasks php it can be run manually or set up to run using windows job scheduler we recommend that you first test the script in manual mode to do this, run the following cmdlet in powershell powershell php exe c \inetpub\wwwroot\passwork\app\tools\run scheduled tasks php if errors occur, they will be written to a log file after the test, make sure that there are no errors in the following file powershell c \inetpub\wwwroot\passwork\app\logs\run command log make sure that the user on whose behalf the script is executed has write permissions configuring task scheduler run powershell as administrator right click on the start icon in the lower left corner of the screen; select windows powershell (administrator) from the context menu create a task in the scheduler to run the script powershell register scheduledtask ` action (new scheduledtaskaction execute "$env\ programfiles\php8 2\php exe" argument " f $env\ systemdrive\inetpub\wwwroot\passwork\app\tools\run scheduled tasks php") ` taskname "passwork task" settings (new scheduledtasksettingsset allowstartifonbatteries ` startwhenavailable hidden priority 5) trigger (new scheduledtasktrigger once at (get date) ` repetitioninterval (new timespan minute 1)) runlevel highest user "username" password "password" force the following parameters should include details of the user on whose behalf the task will run user — username; password — user's password we recommend using the local administrator account to avoid any problems with permissions testing and troubleshooting open passwork under an administrator's account and open the background tasks page if you see a message that the scheduler is not configured, check for errors in the log file at powershell c \inetpub\wwwroot\passwork\app\logs\run command log forward it to our technical support if you need help with troubleshooting task scheduler logs you can view the scheduler log in the event viewer at application and services logs → microsoft → windows → taskscheduler → operational