C
C
catac2016-04-28 22:36:03
System administration
catac, 2016-04-28 22:36:03

How to send standard Windows error messages in the log?

I'm trying to set up sending emails when errors with the severity of Crirical or Error appear in the log.
It is possible to do this through the Task Scheduler, but there the Action "Send an e-mail" is marked as "deprecated"
a8a4b668c4364eb8b82ba9cbed8f7596.png
and when the scheduler task is saved, a message appears
1a512f7128b84bf388bd832ce1ae3428.png
How can this be done using Windows? Or do you have to write a script?
Any tips for solving the problem would be helpful!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alex Suvoroff, 2016-04-29
@catac

In the task scheduler, select the program execution and, as an argument, pass it a Powershell script that will send mail , as suggested by @LiguidCool
In the scheduler, add Action:
add to the arguments:

-ExecutionPolicy RemoteSigned -Command "D:\ПУТЬ_ДО_СКРИПТА\СКРИПТ.ps1"

I
Ivan, 2016-04-28
@LiguidCool

PowerShell?

J
Janus74, 2016-04-29
@Janus74

in "computer management" there is a section "performance" - in it you can do what you want

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question