PowerShell script exchange
Post Reply
toxicavenger
Novice
Posts: 3
Liked: 1 time
Joined: Jun 10, 2016 9:03 am
Contact:

Powershell Script to show all VMs which are being backed up

Post by toxicavenger »

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.
foggy
Veeam Software
Posts: 21072
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

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

Post by foggy » 1 person likes this post

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

Here's also the thread that might be useful.
toxicavenger
Novice
Posts: 3
Liked: 1 time
Joined: Jun 10, 2016 9:03 am
Contact:

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

Post by toxicavenger »

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 ?
Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests