Trying to figure out a way of getting the Status of every Object in a Job.
As in the GUI:
When using: (Get-VBRJob -name $jobName).GetObjectsInJob()
All objects are returned. But nowhere I can find the Last Status.
It's important to get de Object status and not the Job overall status.
Some help appreciated. Thank you.
- Get job session, using Get-VBRBackupSession cmdlet
- Get task session, using Get-VBRTaskSession cmdlet
- Check task session status (should be information you're looking for)
You're welcome. Originally you tried to query list of job source objects. Those objects are just references to virtual infrastructure entities, such as VMs, containers, folders, hosts, etc. (depending on what is selected as job source).
Those objects don't have any connection with task session status, thus, you didn't find needed information.
Glad to hear you're up and running now, though. Should other help be needed, let us know.