I'm trying to create some reports using PowerShell, using VeeamBackup 5.0.2.224 (64bit)
I wanted to use applet Get-VBRBackupSession :
Code: Select all
C:\exploit> Get-VBRBackupSession | where-object { $_.name -eq 'TEST_JOB'}
Job Name State Start Time End Time Result
-------- ----- ---------- -------- ------
TEST_JOB Stopped 25/10/2011 10:21:54 25/10/2011 10:22:36 Failed
TEST_JOB Stopped 26/10/2011 10:00:14 26/10/2011 10:00:59 Success
However I can't find how to handle them.
Get-Member doesn't list these properties :
Code: Select all
C:\exploit> Get-VBRBackupSession | get-member -membertype Property
TypeName: Veeam.Backup.Core.CBackupSession
Name MemberType Definition
---- ---------- ----------
Id Property System.Guid Id {get;}
Info Property Veeam.Backup.Model.CBackupSessionInfo Info {get;}
JobId Property System.Guid JobId {get;}
JobType Property Veeam.Backup.Model.EDbJobType JobType {get;}
Logger Property Veeam.Backup.Core.XmlLogger Logger {get;}
Name Property System.String Name {get;}
Progress Property Veeam.Backup.Model.CProgressData Progress {get;}
Result Property Veeam.Backup.Model.CBaseSessionInfo+EResult Result {get;}
State Property Veeam.Backup.Model.CBaseSessionInfo+EState State {get;}
I tried to use several property names as 'starttime', 'start-time', 'start_time'... without success.
Do you have some idea on this ?
Thanks for any help.
Olivier Druard