Quantcast
Channel: Microsoft – JeffOps
Viewing all articles
Browse latest Browse all 120

Remove the saved state of a VM with PowerShell

$
0
0

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:

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:

Get-VM | Remove-VMSavedState

Post to Twitter


Viewing all articles
Browse latest Browse all 120

Trending Articles