Just now I read a post from Ben Armstrong (MSFT) talking about starting a VM which has a missing virtual hard disk.
In there, he writes about removing a saved state of a virtual machine and he explained how to do it from a GUI.
Well, here’s the PowerShell way:
1 |
Get-VM -Name VM01 | Remove-VMSavedState |
And when you’re in the mood to clean your environment, here’s how to do it for all VMs:
1 |
Get-VM | Remove-VMSavedState |