ConfigMgr

VMware, Azure and Automation

Reporting on your Windows Server backup

18 januari 2021 Powershell Script Solutions

A while ago I blogged about backing up my virtual home lab for free with Veeam Backup & Replication 10. The server on which I installed this is a Windows Server 2016 server that is also used for backing up my home PCs and laptops. And on this server I use Windows Server Backup to create a backup of the server itself.

The only thing that was missing was proper reporting from Windows Server Backup. Veeam sends nice HTML email reports and I wanted to replicate this in Windows Server Backup.

First, I created a scheduled backup in Windows Server Backup. Then I created a scheduled task that was triggered by an Event from Windows Event Viewer.

This event with ID 14 is an informational event “The backup operation has completed.” The action on this scheduled task is Start a Program. And the program to be started is “C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe” with argument “C:\Users\Administrator\Send-Email.ps1”.

The script that I use gathers details about the backup job and reads the related events from the Event Viewer. It then uses this information to construct an HTML email and sends it to my mailbox.

The resulting email looks very similar to the email that is sent by Veeam.

Sent from Windows Server Backup
Sent from Veeam Backup & Replication

BTW I am not backing up the same data twice… The Windows Server Backup only backs up the System State and the system disk (for machine recovery purposes). The Veeam job backs up the MP3 files and home videos that are on the same machine.

BTW2 I also create a copy of the Veeam backup files to a cloud service here in the Netherlands. So with this, I implemented the 3-2-1 rule.

backupemailpowershellreportscript

Testing Script Runtime Service for vSphere - part 1

Testing Script Runtime Service for vSphere - part 2

Recent Posts

  • Using API for Aria OPS Chargeback
  • Unable to set reservation on Org VDC
  • Veeam Tweaks
  • VCF Anyone? Get your license for free…
  • Configure Entra ID as Cloud Director IdP

Recent Comments

Geen reacties om te tonen.

Archives

  • april 2025
  • maart 2025
  • november 2024
  • oktober 2024
  • januari 2024
  • november 2023
  • oktober 2023
  • september 2023
  • juni 2023
  • mei 2023
  • april 2023
  • november 2022
  • maart 2021
  • februari 2021
  • januari 2021
  • november 2020
  • oktober 2020
  • september 2020
  • juli 2020
  • juni 2020
  • april 2020
  • maart 2020
  • februari 2020
  • oktober 2019
  • september 2019
  • juli 2019
  • juni 2019
  • mei 2019
  • maart 2019
  • februari 2019
  • januari 2019
  • december 2018
  • november 2018
  • april 2018
  • januari 2018
  • juli 2017
  • juni 2017
  • mei 2017

Categories

  • AnyLinq
  • Azure
  • Cloud Director
  • ConfigMgr
  • DIY
  • HomeAssistant
  • Microsoft
  • PowerCli
  • Powershell
  • SCCM
  • Script
  • Solutions
  • System Center
  • Veeam
  • VMware
  • vRealize Automation
  • vRealize Orchestrator
Proudly powered by WordPress | Theme: Doo by ThemeVS.