
-
- Enthusiast
- Posts: 94
- Liked: 6 times
- Joined: Apr 21, 2011 7:37 pm
- Contact:
Retreive VM failure or warning info via Powershell
Using powershell, is it possible to pull VM failure or warning info from a job? See screenshot for an example:


-
- SVP, Product Management
- Posts: 27881
- Liked: 4811 times
- Joined: Jan 01, 2006 1:01 am
- Location: Baar, Switzerland
- Contact:
Re: Retreive VM failure or warning info via Powershell
Hi, no I don't believe this is possible with PowerShell cmdlets we have. Thanks.
-
- 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
Once again, another non-supported method. But if you really need this data:
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.
Code: Select all
$Info = [Veeam.Backup.Core.CBackupTaskSession]::GetByJobSession($session.id)
$Info[0].Reason
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.

Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Who is online
Users browsing this forum: No registered users and 10 guests