This Windows Server Backup script has been tested on Windows 2008/R2 and 2012/R2 Servers.
- Download the PowerShell Script attached at the bottom of this article.
- Once you download the file, extract the contents to a folder named c:\Winback
- Edit the CreateTasks.ps1 and update the credentials for your server. This file can be removed once the setup is complete.
- Edit the WinSuccess.ps1 and WinFailure.ps1 files and update the info noted below with your correct email address:
- You will need to use your own SMTP server to send these email notifications to your Backup Radar email address.
- There is a job name field added next to the Backup Success or Backup Failure on the $Subject line. Please update this to the Company Name or Job Name you'd like to use for the backup.
- Open Powershell with Run as Administrator permissions
- If you don't already allow scripts run the command Set-ExecutionPolicy Unrestricted.
- Run Change directories to the c:\winback directory and run the command .\CreateTasks.ps1
- Once it succeeds test by running a backup job and it should send an email notification to your Backup Radar email address.