List Hyper-v VM Snapshots.
With this PowerShell command you can search for snapshots on a Hyper-v node.
1 2 |
#Get VMSnapshots Hyper-v host Get-VM -computername hpvhost | Get-VMSnapshot |
List all snapshots within a Hyper-v cluster.
With this script you can search for all checkpoints on a Hyper-v cluster.
1 2 3 4 5 6 7 8 |
#Define Clustername $clustername = "clusterone" #Get all clusterresources with the type Virtual machine $clusterResource = Get-ClusterResource -Cluster $clustername | Where ResourceType -eq "Virtual Machine" #Get VMSnapshots Get-VM -ClusterObject $clusterResource | Get-VMSnapshot |