Hi guys, if I have multiple snapshots all with the same name, how do I specify which snapshot is the one I want to delete?
eg.
Root
snapname
snapname
snapname (I want to delete this one)
snapname
I could get the ID of the snapshot, but how do I pass that to the remove-snapshot command?
ccan I ask why you are using the same name for the snapshots? :smileyconfused:
I am not, and doesn't happen intentionally, but occasionally I have seen snapshots with the same names (and vmware don't prevent you from creating snapshots with the same names).
ok, what is creating or taking the snapshots?
USing the the regular powercli cmd let, you will end up deleting g all of the snapshots if you do so by name. Not sure how you'd differ based on the name tomget the id. Is it a timing thing you can base the delete off of?
Hi,
Snapshots are bound to a VM, so need to connect to a VM to delete the snapshot.
So even you do it by script you will always to connect(minimum Get-VM) to VM first.
So I think you are safe to delete them.
Hate to be THAT guy who resurrects a 6-year-old thread, but just as an aside for future googlers, Ivanti will do this when patching VMs if it is set to take a pre-patch snapshot. Every snapshot it creates is named STPatch.