PowerShell script exchange
Post Reply
pizzim13
Enthusiast
Posts: 94
Liked: 6 times
Joined: Apr 21, 2011 7:37 pm
Contact:

Retreive VM failure or warning info via Powershell

Post by pizzim13 »

Using powershell, is it possible to pull VM failure or warning info from a job? See screenshot for an example:

Image

Gostev
SVP, Product Management
Posts: 26907
Liked: 4369 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: Retreive VM failure or warning info via Powershell

Post by Gostev »

Hi, no I don't believe this is possible with PowerShell cmdlets we have. Thanks.

Sethbartlett
Expert
Posts: 282
Liked: 26 times
Joined: Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett
Contact:

Re: Retreive VM failure or warning info via Powershell

Post by Sethbartlett »

Once again, another non-supported method. But if you really need this data:

Code: Select all

$Info = [Veeam.Backup.Core.CBackupTaskSession]::GetByJobSession($session.id)
$Info[0].Reason
You get $Session by doing Get-VBRBackupSession. This will allow you what you need. You can do $info |Gm and then if you want to do any of the methods/properties, you will want to do $info[0] as it is an array of objects.
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests