PS C:\Users\jocolon> (Get-VBRJob -Name "PHARMAX-HQ-SVR")
Job Name Type State Last Result Description
-------- ---- ----- ----------- -----------
PHARMAX-HQ-SVR VMware Backup Stopped None Created by PHARMAX\administrator at 6/29/2021 12:12 PM.
PS C:\Users\jocolon>
Ah, sorry to step in, but I do want to note that Secondary Jobs (Copy Jobs) have a set of properties about linked jobs, so you have to go about it a little backwards and process the secondary job and then do some logic.
LinkedJobs => returns CLinkedJob object
LinkedJobIDs => returns array of GUIDs for jobs added to Backup Copies
LinkdBackups => I suppose it should check for backup copies where source is added by backup, but I am having issues getting it to show linked backups
LinkedRepositories => returns repositories that are added as a source.
I don't know if GetSecondDestinationJobs will work for when you're sourcing a secondary job from a Repository, so you might try writing out some logic based on what the Secondary Jobs have in their linked items properties.
Tape is a lot easier as the linked items are returned under Objects in the VBRBackupToTapeJob object.
David Domask | Product Management: Principal Analyst
David is right, I completely forgot about the reversed way. As long as it works with the properties mentioned above, you won't need .NET methods here. Thanks!