Task Schudler plan for to know status of timer job with particular web application

sns 9,236 Reputation points
2020-11-12T07:50:39.74+00:00

I have attached script which gives the status of the respective timer job whether it is connected with respective web application or not
I want to put this script in task scheduler

I know it is script given by third party. I just need your inputs on How to plan for task scheduler. Please see more details below.

Bascially to Run script for checking job existence periodically.

$job = get-sptimerjob -Identity $vwsJobName -WebApplication $webApplicationUrl
if($job -eq $null)
{
Write-Host "Virto Workflow Scheduler job does not exist. Please check Windows Log files."
}

I need to do action mentioned in below statement,(italic) But How Can I achive that using Task scheduler. Please shrae me the steps. Thank you. This is suggestion from respective support team. 39292-virtoscript1.txt39186-virtoscript2.txt

Mark last time when the job was present and first time when it was deleted. Then check Windows log files (Event Viewer) for this period. Check every suspicious error, exception or notification. The job can be deleted because of many reasons.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,469 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Eleven Yu (Shanghai Wicresoft Co,.Ltd.) 10,746 Reputation points Microsoft Vendor
    2020-11-16T06:33:53.677+00:00

    Hi,

    We have less knowledge on the script, but you can refer to below article for guidance and detailed steps to create a regular task to run the script in task scheduler.

    How to create an automated task using Task Scheduler on Windows 10
    https://www.windowscentral.com/how-create-automated-task-using-task-scheduler-windows-10

    Hope the information could give you some help.

    Thanks,

    Eleven

    If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.