By continuing to use our website, you agree with our use of cookies in
accordance with our Cookie Policy.
You can reject cookies by changing your browser settings.
So for some time we could not (or thought so) remove a VM from a job using the Remove-VBRObject and this is correct. It would just exclude the VM from the job, which isn't really removing the VM. I can't believe I didn't think of this earlier, by .Delete() works. So what we can do is the following:
($Job.GetObjectsInJob() | ?{$_.name -eq "Name of VM").Delete()
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.