BCornelissen / SCOM-WinTaskSchedulerMP

SCOM Management Pack for Windows Task Scheduler
GNU Lesser General Public License v3.0
7 stars 3 forks source link

SCOM 2022: Windows task Scheduler and PS Job monitoring unable to generate alert for PowerShell jobs #17

Closed DNigussie closed 6 months ago

DNigussie commented 6 months ago

Hi,

I've imported the Windows Scheduled Task and PowerShell Scheduled Job Management Pack V 1.2.2.8 on SCOM 2022 and it's working for Windows schedule tasks and generating alerts as expected when the scheduled tasks fail. The issue that I'm having is that I don't see any alerts for the PowerShell Job failures.

From the console view: Microsoft Windows Server / Scheduled Task, I don't see anything listed under 'Scheduled PS Job State' though I've lots of PS schedule jobs.

image image

Regards, Dera

DNigussie commented 6 months ago

I'm able to figure it out. I was under the impression that the Scheduled Jobs and Scheduled Tasks are the same from the PowerShell perspective. After creating a scheduled job using PowerShell, I'm able to see the jobs under the 'Scheduled PS Job State'.

Thanks, Dereje