hyper-v_snapshots
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| hyper-v_snapshots [2022/12/20 00:07] – created oso | hyper-v_snapshots [2024/10/17 21:42] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| This is the solution that should be done first before any other solution. Just remove the lingerging backup checkpoint like you would a normal one via PowerShell (attention: check that you have a minimum of free space for the merge to be done without problems): | This is the solution that should be done first before any other solution. Just remove the lingerging backup checkpoint like you would a normal one via PowerShell (attention: check that you have a minimum of free space for the merge to be done without problems): | ||
| - | <code: powershell> | + | <code powershell> |
| - | Get-VMSnapshot | + | Get-VMSnapshot -VMName " |
| </ | </ | ||
| Line 9: | Line 9: | ||
| </ | </ | ||
| + | ===== Get snapshot count for each VM ===== | ||
| + | |||
| + | To count the number of snapshots/ | ||
| + | |||
| + | <code powershell> | ||
| + | $vms = Get-VM | ||
| + | foreach ($vm in $vms) { | ||
| + | $snapshotCount = (Get-VMSnapshot -VMName $vm.Name).Count | ||
| + | Write-Output " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Explanation: | ||
| + | * Get-VM retrieves all VMs on the host. | ||
| + | * For each VM, '' | ||
| + | * Finally, it outputs the VM name along with its snapshot count. | ||
hyper-v_snapshots.1671494843.txt.gz · Last modified: 2024/10/17 21:42 (external edit)
