Powershell Script for Windows Server Backup Notification
Windows Server Backup is a simple, yet very effective means to back up your Windows servers, but it does not have any built in email notification. This Powershell script can be scheduled to send the latest backup results via email.
# Script to retrieve and send Windows Server Backup results
# Author: Syndeo Technologies
# Created: PS112817
$subject="Latest Backup Results "+$lbackup
Send-MailMessage -To <targetemail> -From <sourceemail> -Subject $subject -Body $body -Smtpserver <smtpserver>
Use Task Scheduler to run this script after the backup completes.
IMPORTANT: Make sure that you check off the box “run with highest privileges” if you run this as a scheduled task.
Added note on highest privileges
THIS INFORMATION IS PROVIDED “AS IS” WITH NO WARRANTY OF ANY KIND AS TO THE ACCURACY OF ITS CONTENT.