Remove the saved state of a VM with PowerShell

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:

And when you’re in the mood to clean your environment, here’s how to do it for all VMs:

Leave a Reply

Your email address will not be published. Required fields are marked *