One service is created for each task which is not disabled. Step 3) Enter a Name and Description for your task (optional). To make a task run interactively, select the Run. If this radio button is selected, tasks will not run interactively. To do this, select the radio button labeled Run whether user is logged on or not. Step 2) Click on Create Basic Tasks under Actions on the right menu. You can specify that a task should run even if the account under which the task is scheduled to run is not logged on when the task is triggered. I entered MaxCPU in the Name text box, supplied the location of the script. In the Actions pane, I clicked Create Task. To schedule the PowerShell job to run every four hours, I entered taskschd.msc in the Windows Start menu, which brought up the Task Scheduler. Step 1) Navigate to Windows Logo in the Menu > All Programs > Accessories > System Tools > Task Scheduler. Schedule a Job Using the Task Schedule Interface. Note that for this check plugin to discover any services at all, you need to activate the Windows agent plugin "Windows Task Scheduler". Task: In the following example, our task is to run an Excel file everyday. Finally, this rule allows users to modify the monitoring state of tasks which are not enabled. Here, users can customize the mapping from return code to monitoring state and users can also change the output produced by the check plugin for a given return code. The check plugin can be configured via the rule "Windows Tasks".
Any returnĬode not listed under the above link will by default result in the monitoring state CRITICAL.įurthermore, by default, the check plugin will go WARNING if a monitored task is not enabled. Mapping from return code to monitoring state to handle the return codes specified underįor these return codes, the check plugin will also display the appropriate error message. This check plugin monitors the last return state of Windows tasks. Check manual page of windows_tasks Windows Task Scheduler: State