PowerShell Logo Small

Remove-VMSavedState



This is the built-in help made by Microsoft for the command 'Remove-VMSavedState', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Deletes the saved state of a saved virtual machine.

SYNTAX


Remove-VMSavedState [-VMName] <String[]> [-ComputerName <String[]>] [<CommonParameters>]
Remove-VMSavedState [-VM] <VirtualMachine[]> [<CommonParameters>]
Remove-VMSavedState [-VMSnapshot] <VMSnapshot> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


Deletes the saved state of a saved virtual machine. Note: data contained in the memory of the virtual machine may be lost; data on its virtual hard disk drives are
unaffected.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=306914

REMARKS

<

Examples


Example 1

PS C:\>Remove-VMSavedState TestVM



Removes the saved state from virtual machine TestVM.




Example 2

PS C:\>Get-VMSnapshot TestVM | Remove-VMSavedState



Removes the saved state from all snapshots belonging to virtual machine TestVM.