• About me…
  • VMware
  • Powershell
  • DIY

ConfigMgr.nl

VMware, PowerShell, Automation, and more…

  • About me…
  • VMware
  • Powershell
  • DIY

Reporting on your Windows Server backup

18 januari 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

Geef een antwoord Reactie annuleren

Deze website gebruikt Akismet om spam te verminderen. Bekijk hoe je reactie-gegevens worden verwerkt.

Recente berichten

  • Handy one-liners
  • The system has insufficient locker space for the image profile
  • Testing Script Runtime Service for vSphere – part 2
  • Reporting on your Windows Server backup
  • Testing Script Runtime Service for vSphere – part 1

Jeroen BurenFollow

Jeroen Buren
jeroen_burenJeroen Buren@jeroen_buren·
1 mei

Fijn weer een seintje gekregen van @VattenfallNL : Uw termijnbedrag is op dit moment niet meer helemaal in lijn met uw verbruik. Ze bedoelen natuurlijk niet meer in lijn met hun tarieven…

Reply on Twitter 1520835622042222595Retweet on Twitter 1520835622042222595Like on Twitter 15208356220422225952Twitter 1520835622042222595
jeroen_burenJeroen Buren@jeroen_buren·
13 dec

Baas!! Was geweldig om te zien

Ziggo Sport Racing@ZS_Racing

De legendarische @SChecoPerez aan het woord! 🙌

'Ik was aan het einde van mijn leven, ik was aan het doodgaan. Maar Lewis Hamilton verloor een aantal seconden', aldus Sergio Pérez tegenover @JackOnTracks 📽️

#ZiggoSport #F1 #AbuDhabiGP 🇦🇪

Reply on Twitter 1470285708338335747Retweet on Twitter 1470285708338335747Like on Twitter 1470285708338335747Twitter 1470285708338335747
jeroen_burenJeroen Buren@jeroen_buren·
13 dec

Do you want to be busy during the holidays? Or take some time to patch?

VMware Sec Response@VMwareSRC

On 10/12/2021 we released a new Critical Severity VMware Security Advisory. Check out https://www.vmware.com/security/advisories/VMSA-2021-0028.html. #VMware #log4j

Reply on Twitter 1470283508551761923Retweet on Twitter 1470283508551761923Like on Twitter 1470283508551761923Twitter 1470283508551761923
jeroen_burenJeroen Buren@jeroen_buren·
11 dec

Wat een spanning!!! Nu al!! #MaxVerstappen #F1Finale

Reply on Twitter 1469669386059460613Retweet on Twitter 1469669386059460613Like on Twitter 14696693860594606131Twitter 1469669386059460613
Retweet on TwitterJeroen Buren Retweeted
JDSchuitemakerʞɹıᗡ-uɐſ@JDSchuitemaker·
8 dec

Met code F1GAME25 nu het volledige F1 seizoen kijken voor Euro 49, ipv Euro 14,99 per maand bij #viaplay #beau

https://www.formula1.com/en/subscribe-to-f1-tv.html#nl-NL

Reply on Twitter 1468700389881098242Retweet on Twitter 14687003898810982422Like on Twitter 14687003898810982429Twitter 1468700389881098242
Load More...

Categorieën

Proudly powered by WordPress | Theme: Doo by ThemeVS.