Hi everyone! I recently worked on a Hyper-V cluster and ran into a rather weird issue where I am unable to remove VM checkpoints from Hyper-V Manager.
Now I’m sure most of you will tell who is using the UI? We are all PowerShell gods who grab the bull by the horn and automate our path in life.
Well that’s true and we all have fun with the user interface from time to time. Well the fix is ??yes, go to PowerShell and delete the snapshot.
So I decided to write this article to make sure we have a written solution for this type of problem.
So, without further ado on my part, let’s open this PowerShell prompt and delete this snapshot!
We’ll use two PowerShell cmdlets for this. Get-VMSnapshot and Remove-VMSnapshot .
So, first of all, let’s take all the snapshots for this particular VM.
# Get-VMSnapshot -ComputerName HVHOST01 -VMName MSSQL01
Now that we have verified the snapshot name, we can use the Remove-VMSnapshot cmdlet to remove it. We have two options: either pipe it to the first cmdlet, or use it as a separate cmdlet.
# Get-VMSnapshot -ComputerName HVHOST01 -VMName MSSQL01 | Remove-VMSnapshot
# Remove-VMSnapshot -VMName MSSQL01 -Name “snapshot_1”
Simple enough! I hope you enjoyed this short article. Come back for more!