as the title implicates, we want to get all the jobs a specific vm is in.
'Till now we do this with a Get-VBRJob to get names of all jobs and pass this list, jobname by jobname through a loop, to Get-VBRJobObject and compare all vm-names in the result list with the one we are looking for, to see if the specific vm is in that job. If so the script returns the jobs name and Get-VBRJobObject is called with the next job name from Get-VBRJob.
Is there a more direct approach through a cmdlet? We've looked for something like '
Code: Select all
Get-VMsJobNames -name "VM Name"
Code: Select all
Find-JobsOfVM -name "VM Name"
Best regards