question

MaheshParmar-3938 avatar image
0 Votes"
MaheshParmar-3938 asked KarlieWeng-MSFT commented

We are trying to achive email alerts all windows task scheduler jobs, The email action feature is disable in 2016 server we need help out to monitor jobs status

We are trying to achive email alerts all windows task scheduler jobs? The eamil action feature is disable in 2016 server we need help out to monitor jobs status ![79640-taskscheduler.png][1] [1]: /answers/storage/attachments/79640-taskscheduler.png

windows-serverwindows-server-powershellwindows-server-2016
taskscheduler.png (50.6 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

kindly mark useful reply as answer which would also help other community members.
Have a great day!
Thanks a lot.

0 Votes 0 ·
RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered

Set the action to "run a program". Set the program to "PowerShell -ExecutionPolicy Unrestricted -WindowStyle Hidden -File "fullpath\script.ps1". Set the starting directory. Add any parameters the script might need. In the script, use the "Send-MailMessage" cmdlet to send the e-mail.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KarlieWeng-MSFT avatar image
0 Votes"
KarlieWeng-MSFT answered

Hello @MaheshParmar-3938

Hope the below blog would help:
STEP-BY-STEP: HOW TO TRIGGER AN EMAIL ALERT WHEN A SPECIFIC WINDOWS SERVICE STARTS OR STOPS ON WINDOWS SERVER 2016

Best Regards
Karlie


If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.