PowerShell Logo Small

Get-VMSnapshot



This is the built-in help made by Microsoft for the command 'Get-VMSnapshot', 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

Gets the checkpoints associated with a virtual machine or checkpoint.

SYNTAX


Get-VMSnapshot [[-Name] <String>] [-SnapshotType <SnapshotType>] -ChildOf <VMSnapshot> [<CommonParameters>]
Get-VMSnapshot [-VMName] <String[]> [[-Name] <String>] [-ComputerName <String[]>] [-SnapshotType <SnapshotType>] [<CommonParameters>]
Get-VMSnapshot [-Id] <Guid> [-ComputerName <String[]>] [<CommonParameters>]
Get-VMSnapshot [-VM] <VirtualMachine[]> [[-Name] <String>] [-SnapshotType <SnapshotType>] [<CommonParameters>]
Get-VMSnapshot [[-Name] <String>] [-SnapshotType <SnapshotType>] -ParentOf <VirtualMachineBase> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-VMSnapshot cmdlet gets the checkpoints associated with a virtual machine or checkpoint.


Note: In Windows Server 2012 R2, virtual machine snapshots were renamed to virtual machine checkpoints. For clarity, this document will refer to virtual machine snapshots as
checkpoints.



<

RELATED LINKS


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

REMARKS

<

Examples


Example 1

PS C:\>Get-VMSnapshot –VMName TestVM



Gets all checkpoints of virtual machine TestVM.




Example 2

PS C:\>Get-VM –Name TestVM | Get-VMSnapshot –SnapshotType Standard



Gets all standard checkpoints of virtual machine TestVM.




Example 3

PS C:\>$snapshot = Get-VMSnapshot –Name 'Before applying updates' –VMName TestVM


PS C:\>Get-VMSnapshot –ParentOf $snapshot



Gets the immediate parent of checkpoint Before applying updates of virtual machine TestVM.




Example 4

PS C:\>$snapshot = Get-VMSnapshot –Name 'Before applying updates' –VMName TestVM


PS C:\>Get-VMSnapshot –ChildOf $snapshot



Gets the immediate child checkpoints of checkpoint Before applying updates of virtual machine TestVM.