Hexalogy
Hexalogy

Reputation: 63

Getting the name of the snapshot from a specific VM?

How can I get the name of the snapshot that the particular machine is using?

I have tried:

Get-VM -Name vdix-test-01 | Get-Snapshot

but it returns blank..

Upvotes: 0

Views: 636

Answers (2)

Gregu
Gregu

Reputation: 115

You might want to also check the ExtensionData.Summary.Runtime.ConsolidationNeeded in that case if you don't see the get-snapshot result but you see the yellow warning on a VM. + in case something really really went terribly wrong, then i think you can only do : https://grzegorzkulikowski.info/2012/07/17/watch-out-for-snapshots/ so yo you would be checking basically the vmdk names .

Upvotes: 0

knurmia
knurmia

Reputation: 171

You're using the correct cmdlets, maybe the VM doesn't have any snapshots?

If you want to see all the VMs that do have a snapshot, you can use this one-liner

Get-VM | Get-Snapshot | ft VM, Name -AutoSize

Upvotes: 1

Related Questions