Avatar of sara2000
sara2000
 asked on

email alert after task scheduler execute a script.

I have a ps script to backup a server and i scheduled it via task scheduler to run. The script runs and backup works as I expected. I would like to modify the script for me to send an alert after the execution of the script. I do not care whether it is a successful backup or the backup ha failed. I only want to remind you the script ran on this day and time. I will appreciate it if you could list a statement so I can put that at the end of my script.
PowershellWindows Server 2012

Avatar of undefined
Last Comment
Shaun Vermaak

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Shaun Vermaak

Or call a tool like Blat at the end of the script
https://www.blat.net/
https://alternativeto.net/software/blat/
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck