Hello,
Is it possible to exclude an object in job ?
I can add an VM in a job with this command Add-VBRJobObject -Job $job -Server $vcenter -Object $object
But how to exclude this object in the job ?
$job = Get-VBRJob -Name "Job Name"
$obj = $job | Get-VBRJobObject
$exclude = $obj | ?{$_.Name -eq "VM to Exclude"}
Remove-VBRJobObject -Job $job -Object $exclude
Get-VBRJob -Name "Job Name" | Get-VBRJobObject -Name "VMToExclude" | Remove-VBRJobObject
Users browsing this forum: No registered users and 1 guest