Powershell Script to show all VMs which are being backed up

PowerShell script exchange

Powershell Script to show all VMs which are being backed up

Veeam Logoby toxicavenger » Fri Jun 10, 2016 9:14 am

Hi,

Is there a way to show all VMs that are getting backed up by Veeam ? I dont need any other Information in which folder or whatsoever they are in. I would like to compare that list with another list from our Vcenter to see which VM is not getting backed up and report that to Icinga2. Or is there an easy way to get this list from Veeam/or Vcenter directly ?


Thanks.
toxicavenger
Novice
 
Posts: 3
Liked: 1 time
Joined: Fri Jun 10, 2016 9:03 am

Re: Powershell Script to show all VMs which are being backed

Veeam Logoby foggy » Fri Jun 10, 2016 9:51 am

Please check the Veeam ONE Protected VMs report, looks exactly like what you're after.

Here's also the thread that might be useful.
foggy
Veeam Software
 
Posts: 14716
Liked: 1075 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson

Re: Powershell Script to show all VMs which are being backed

Veeam Logoby toxicavenger » Fri Jun 10, 2016 10:33 am

Thanks.

I´m trying to use this piece of code from another thread. But I only get the Names of the Backup Folders not the VMs inside.

Code: Select all
asnp VeeamPSSnapin
$JobList = Get-VBRJob
foreach($Jobobject in $JobList)
{$Objects = $JobObject.GetObjectsInJob()
$Objects.name}


Am I missing something ?
toxicavenger
Novice
 
Posts: 3
Liked: 1 time
Joined: Fri Jun 10, 2016 9:03 am


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 6 guests