PowerShell script exchange
Post Reply
VTsnow
Influencer
Posts: 13
Liked: 8 times
Joined: Feb 18, 2019 6:34 pm
Full Name: Scott Driver
Contact:

Updated Veeam Backup Report via PowerShell

Post by VTsnow » 4 people like this post

Earlier this year I posted a handy little script that I whipped up for myself, that essentially pulled in VM's from a vCenter and matched them off against VBR jobs. The result was a easy to read "gap report". https://virtualvt.wordpress.com/2019/06 ... owershell/

Last week I made enough progress to post v2 of that script. The script is now parameterized so it's able to be run from the command-line. As you can tell from the title of my blog post, my purpose is to provide information to auditors, so at the moment there are three main reports, screenshots below.
https://virtualvt.wordpress.com/2019/12 ... report-v2/

If you try this script out, please let me know. I'd love to continue working on it, but only if others find utility.
Cheers!

Overview report:
Image

Backup Status report:
Image

Gap Report:
Image
Vanguard** | vExpert**** | VCP-DCV***** | VirtualVT.wordpress.com | @VTsnowboarder42
Lover of my family, snowboarding, community and bullet points.
chris.arceneaux
VeeaMVP
Posts: 695
Liked: 374 times
Joined: Jun 24, 2019 1:39 pm
Full Name: Chris Arceneaux
Location: Georgia, USA
Contact:

Re: Updated Veeam Backup Report via PowerShell

Post by chris.arceneaux »

Thanks for sharing, Scott!

Please consider adding this to VeeamHub as well. It'd make an excellent contribution!
jhoughes
Veeam Vanguard
Posts: 282
Liked: 113 times
Joined: Apr 20, 2017 4:19 pm
Full Name: Joe Houghes
Location: Castle Rock, CO
Contact:

Re: Updated Veeam Backup Report via PowerShell

Post by jhoughes »

Nice work Scott, you should put in a pull request to roll it into VeeamHub.
Husband, Father, Solutions Architect, Geek | @DenverVMUG & @DenverPSUG leader | International Speaker | Veeam Vanguard | vExpert (PRO) | Cisco Champion
chris.arceneaux
VeeaMVP
Posts: 695
Liked: 374 times
Joined: Jun 24, 2019 1:39 pm
Full Name: Chris Arceneaux
Location: Georgia, USA
Contact:

Re: Updated Veeam Backup Report via PowerShell

Post by chris.arceneaux » 1 person likes this post

I guess you could say Joe and I are VeeamHub fanboys and advocates. 😆
albertwt
Veteran
Posts: 942
Liked: 53 times
Joined: Nov 05, 2009 12:24 pm
Location: Sydney, NSW
Contact:

Re: Updated Veeam Backup Report via PowerShell

Post by albertwt »

thanks @VTsnow for sharing it here.
--
/* Veeam software enthusiast user & supporter ! */
cookiejc
Enthusiast
Posts: 81
Liked: never
Joined: Nov 06, 2013 3:15 pm
Full Name: J Cook
Contact:

Re: Updated Veeam Backup Report via PowerShell

Post by cookiejc »

Hi, this script looks great!

Are there any plans to make this work for Hyper-V in anyway? I'm struggling to find a reporting script which will work with VMM especially for a gap report

Cheers, James
jhoughes
Veeam Vanguard
Posts: 282
Liked: 113 times
Joined: Apr 20, 2017 4:19 pm
Full Name: Joe Houghes
Location: Castle Rock, CO
Contact:

Re: Updated Veeam Backup Report via PowerShell

Post by jhoughes »

You could just modify the existing script to pull the VM information from Hyper-V, rather than VMware.

This would be a simple modification to just replaced the code for the connection to Hyper-V, rather than VMware, then the same "Foreach ($GapVM in get-vm)" would give you results for Hyper-V.

Alternatively, you could replace 'Get-VM' with a variable where you have gathered your VMs to be reported against.
Husband, Father, Solutions Architect, Geek | @DenverVMUG & @DenverPSUG leader | International Speaker | Veeam Vanguard | vExpert (PRO) | Cisco Champion
cookiejc
Enthusiast
Posts: 81
Liked: never
Joined: Nov 06, 2013 3:15 pm
Full Name: J Cook
Contact:

Re: Updated Veeam Backup Report via PowerShell

Post by cookiejc »

Thanks for the advice ill give it a go and see how far I get!
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 6 guests