• About me…

ConfigMgr.nl

VMware, Automation and more

  • About me…

Reporting on your Windows Server backup

18-01-2021 Powershell Script Solutions No Comments

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

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Testing Script Runtime Service for vSphere – part 2
  • Reporting on your Windows Server backup
  • Testing Script Runtime Service for vSphere – part 1
  • Using ADFS with vCenter 7
  • Network Port Diagram vSphere
  • Joining ESXi hosts to AD using Authentication Proxy in vCenter 7 (updated 04-12-2020)
  • Windows Server 2019 customization issue
  • Packer and WinRM – mystery resolved
  • Using LDAPS with vCenter and AD
  • Backup your homelab… for free!

Archives

Categories

AnyLinq (1) Azure (2) ConfigMgr (8) DIY (4) PowerCli (9) Powershell (10) SCCM (9) Script (12) Solutions (16) System Center (3) VMware (31) vRealize Automation (1) vRealize Orchestrator (1)

Jeroen BurenFollow

Jeroen Buren
jeroen_burenJeroen Buren@jeroen_buren·
23 Feb

Eerlijk gezegd ben ik niet zo opstandig maar dit kan je toch niet volhouden? Gooi wat mij betreft de winkels, sportscholen en restaurants maar open! Ik weet wel op wie ik niet ga stemmen... #persconferentie #klaarmetRutte

Reply on Twitter 1364303792364269568Retweet on Twitter 1364303792364269568Like on Twitter 13643037923642695682Twitter 1364303792364269568
jeroen_burenJeroen Buren@jeroen_buren·
22 Feb

Installed vSphere with K8S using this awesome script (https://github.com/lamw/vghetto-vsphere-with-kubernetes-external-nsxt-automated-lab-deployment) from @lamw. The only thing I could not get running was the yelb demo app... Could it be the NSX-T 3.1 Limited Export edition? #vExpert #NSX

Reply on Twitter 1363884748205142020Retweet on Twitter 1363884748205142020Like on Twitter 1363884748205142020Twitter 1363884748205142020
Retweet on TwitterJeroen Buren Retweeted
Annemiek73Annemiek Meijer@Annemiek73·
16 Jan

Running man kan altijd! Ook tijdens #VVAL2021 @VriendvanAmstel #RunningMan #VVALS

Reply on Twitter 1350537030879608833Retweet on Twitter 13505370308796088332Like on Twitter 135053703087960883326Twitter 1350537030879608833
Retweet on TwitterJeroen Buren Retweeted
PowerCLIVMware PowerCLI@PowerCLI·
11 Jan

Do check out the SRS roadmap here. Feel free to influence the roadmap by submitting your requests. https://github.com/vmware/script-runtime-service-for-vsphere/projects/2 https://twitter.com/PowerCLI/status/1337370157551796225

VMware PowerCLI@PowerCLI

Introduction to Script Runtime Service (SRS) for vSphere https://blogs.vmware.com/PowerCLI/2020/12/introduction-to-script-runtime-service-srs-for-vsphere.html

Reply on Twitter 1348606798492618752Retweet on Twitter 13486067984926187524Like on Twitter 13486067984926187528Twitter 1348606798492618752
jeroen_burenJeroen Buren@jeroen_buren·
7 Jan

New blogpost about Script Runtime Service for vSphere.
https://configmgr.nl/2021/01/07/testing-script-runtime-service-for-vsphere-part-1/

#VMware #vSphere #SRS #PowerCLI

Reply on Twitter 1347191971002118144Retweet on Twitter 1347191971002118144Like on Twitter 1347191971002118144Twitter 1347191971002118144
Load More...
Proudly powered by WordPress | Theme: Doo by ThemeVS.