Enabling sensor auto-start on Windows as a scheduled task

To enable OpenText ScanCentral SAST sensor auto-start on Windows as a scheduled task:

  1. Log on to the sensor machine as a local user with administrator permissions.

    Sensors are dedicated machines intended only to run OpenText SAST on behalf of OpenText ScanCentral SAST. Do not share them with any other service. To avoid issues associated with insufficient permissions, use a fully privileged administrator account for the auto-start setup.

  2. Start the Task Scheduler.

  3. In the Actions pane, select Create Task.

  4. On the General tab, provide the following information:

    1. In the Name box, type a name for the task.
    2. Click Run whether user is logged on or not.
  5. Click the Actions tab, and then click New.

    The New Action dialog box opens.

    1. In the Action list, select Start a program.
    2. In the Program/script box, type the directory path to your scancentral.bat file (for example, <sast_install_dir>\bin\scancentral.bat).

      The <sast_install_dir> is only valid if the user installs the OpenText ScanCentral SAST client in the same directory as the OpenText SAST. Otherwise, this worker.properties file is under the OpenText ScanCentral SAST client installation directory.
    3. In the Add arguments (optional) box, type the following:

      –url https://<host>:<port>/scancentral-ctrl worker >taskout.txt 2>&1
    4. In the Start in (optional) box, type the path to the OpenText ScanCentral SAST sensor bin directory (for example, <sast_install_dir>\bin\).

    5. Click OK.
  6. Click the Triggers tab.

  7. Make sure that the At startup trigger is enabled, and then click OK.
  8. Click the Settings tab.

  9. Make sure the Stop the task if it runs longer than check box is cleared, and then click OK.
  10. Restart the machine.

The script output in the taskout.txt file indicates whether the sensor started successfully.

You can also start and stop the scheduled task manually from the Task Scheduler when you are logged into the machine.