VMware Horizon Community
sayaho
VMware Employee
VMware Employee

Create a list of full-clone VMs from the command line and delete

How do I create a list of full-clone VMs from the command line and delete it?

I know how to delete full-clone VMs from the command line.

https://github.com/vmware/PowerCLI-Example-Scripts/blob/8db1fe37a24fc657065aa7a8e8ba99e2c7b16891/Mod...

Thanks.

0 Kudos
2 Replies
RetouwNL
Enthusiast
Enthusiast

Did you also ask this on Reddit?

 

What you can do is: get a list of all desktop pools with full clones first:

VMware Horizon Server API - VMware API Explorer - VMware {code}

with a filter on source = virtual_center and type is automated

From those desktop pools you can get the machines using :

VMware Horizon Server API - VMware API Explorer - VMware {code}

with a filter on the pools

and with the machine id's you can delete them using:

VMware Horizon Server API - VMware API Explorer - VMware {code}



Previously known as Magneet or Magneet_NL, does things with Horizon api's, see www.retouw.nl
sayaho
VMware Employee
VMware Employee

Thank you for your perfect answer.

I didn't ask there.

I will try to test it with what you have told me.

Thank you so much!!

0 Kudos