Related vesion: All
Problem
From time to time, you may need to change the security scan local scheduler settings using a managed script.
Resolution
Sample Script:
[MACHINES_WIN]
REMEXEC03=<qt/>%LDMS_CLIENT_DIR%\LocalSch.exe<qt/> /del /taskid=777
REMEXEC04=<qt/>%LDMS_CLIENT_DIR%\LocalSch.exe<qt/> /exe=%quote%%LDMS_CLIENT_DIR%\vulscan.exe %quote% /cmd=<qt/>/noreboot<qt/> /taskid=777 /freq=86400 /tod=%quote%14|16%quote% /autodelay=1|60
Note:
1. /taskid=777, security scan local scheduler task ID is always 777 by default. Changing the ID is NOT recommended.
2. /cmd=<qt/>/noreboot<qt/> is the security scan switch, please refer to the related document below for more details.
3. /freq=86400, local scheduler task frequency in seconds, 86400 means 1 day. The value can be changed according to your needs.
4. /tod=%quote%14|16%quote%, time period sets to perform the task, 14|16 means from 2pm to 4pm. The value can be changed according to your needs.
5 /autodelay=1|60, time delay sets to perform the task, 1|60 means 1 hour. The value can be changed according to your needs.
Related document: