Powercli script to remove Orphaned VM

Use the below Powercl to remove VM from vcenter inventory.

Remove-VM -VM <VMName> -DeletePermanently -Confirm:0

Leave a Reply

Your email address will not be published. Required fields are marked *