7.9.2 Task setup procedure
This section describes the procedures for using Windows Task Scheduler to enable and disable tasks, change a task execution schedule, and delete tasks.
- Organization of this subsection
(1) Enabling a task
By default, all Asset Console tasks created in Windows Task Scheduler are disabled. To use a task, you must enable it. You can disable any task that you are not using.
In addition, to use a task, see Appendix G. Notes on Executing Asset Console Commands and Tasks.
To enable or disable a task registered in Task Scheduler:
-
Start Task Scheduler.
-
Select the task that you want to enable or disable.
-
From the Actions menu, select Enable.
To disable the task, select Disable.
The task is enabled or disabled. The result (return value) of task execution can be confirmed in Last Run Result in the list of tasks.
The table below shows the Run setting for each task.
The notations WINDOWS and INSTALL in the table correspond to the following folders:
-
INSTALL: Asset Console installation folder
-
WINDOWS: Windows installation folder
Table 7‒12: Run setting for each task Task name
Run setting
Data maintenance (Asset Console)
"INSTALL\exe\jamscript.exe" -f "INSTALL\scriptbatch\DataMaintenance.txt"
Notification of invalid contract information (Asset Console)
"WINDOWS\system32\cscript.exe" "INSTALL\exe\jamexpiration.vbs"
Notice of license excess (Asset Console)
"WINDOWS\system32\cscript.exe" "INSTALL\exe\jamLicenseOver.vbs"
Totals number of licenses (Asset Console)
"WINDOWS\system32\cscript.exe" "INSTALL\exe\jamSoftwareAddUp.vbs"
Notification of unauthorized install (Asset Console)
"WINDOWS\system32\cscript.exe" "INSTALL\exe\jamPermitInstall.vbs"
Delete change log (Asset Console)
"INSTALL\exe\jamscript.exe" -f "INSTALL\scriptbatch\RemoveRecord.txt" -s TARGET=A -s MONTH=6
Acquisition of ITDM2 - Manager management information (Asset Console)
"INSTALL\exe\jamTakeITDM2Info.exe"
(2) Changing a task schedule
You can change a task's execution date and time. You can also add a schedule.
-
Changing the execution date and time
To change a task execution date and time:
-
Start Task Scheduler.
-
Select the task whose execution date and time are to be changed and display its properties.
The selected task's Properties dialog box appears.
-
On the Triggers tab, select the trigger to be changed and then click the Edit button.
-
Edit the settings of the trigger and then click the OK button.
The task is modified to the specified schedule.
-
-
Adding an execution schedule
To add a task execution schedule:
-
Start Task Scheduler.
-
Select the task for which a schedule is to be added and display its properties.
The selected task's Properties dialog box appears.
-
On the Triggers tab, click the New button.
The New Trigger dialog box appears.
-
Set a trigger.
-
Click the OK button.
A schedule is added to the task.
-
(3) Deleting a task
To delete an unneeded task:
-
Start Task Scheduler.
-
Select the task you wish to delete, and then from the Actions menu, select Delete.
The selected task is deleted.
(4) Task execution results
You can check the execution results (return values) of tasks in Last Run Result in the list of tasks that is displayed in Task Scheduler.
For details about the execution results, see ASTINVn.LOG (for the Acquisition of ITDM2 - Manager management information (Asset Console) task) or ASTMESn.log (for tasks other than the Acquisition of ITDM2 - Manager management information (Asset Console) task).
For the return values and their descriptions, see the description of each task in 7.9.1(1)Name and details of each task.