When you query backup sessions using Get-VBRBackupSession, you get an array.
Code: Select all
PS C:\Users\Administrator> $BackupSession = Get-VBRBackupSession -Name w2016*
PS C:\Users\Administrator> $BackupSession
Job Name State Start Time End Time Result
-------- ----- ---------- -------- ------
w2016 (Incremental) Stopped 23.06.2021 15:26:54 23.06.2021 15:33:11 Success
w2016 (Full) Stopped 23.06.2021 12:30:36 23.06.2021 12:39:05 Success
Code: Select all
PS C:\Users\Administrator> $BackupSession | select jobname, name
JobName Name
------- ----
w2016 w2016 (Incremental)
w2016 w2016 (Full)
I would suggest to call the first shown column of Get-VBRBackupSession Name instead of Job Name.