This is the built-in help made by Microsoft for the command 'Get-VMSnapshot', in PowerShell version 3 - as retrieved from
Windows version 'Microsoft Windows Server 2012 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.
Gets the snapshots associated with a virtual machine or snapshot.
Get-VMSnapshot [[-Name] <String>] [-SnapshotType <SnapshotType>] -ChildOf <VMSnapshot> [<CommonParameters>]
Get-VMSnapshot [-Id] <Guid> [-ComputerName <String[]>] [<CommonParameters>]
Get-VMSnapshot [-VMName] <String[]> [[-Name] <String>] [-ComputerName <String[]>] [-SnapshotType <SnapshotType>] [<CommonParameters>]
Get-VMSnapshot [[-Name] <String>] [-SnapshotType <SnapshotType>] -ParentOf <VirtualMachineBase> [<CommonParameters>]
Get-VMSnapshot [-VM] <VirtualMachine[]> [[-Name] <String>] [-SnapshotType <SnapshotType>] [<CommonParameters>]
The Get-VMSnapshot cmdlet gets the snapshots associated with a virtual machine or snapshot.
<
<
Example 1
PS C:\>Get-VMSnapshot –VMName TestVM
Gets all snapshots of virtual machine TestVM.
Example 2
PS C:\>Get-VM –Name TestVM | Get-VMSnapshot –SnapshotType Standard
Gets all standard snapshots 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 snapshot 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 snapshots of snapshot Before applying updates of virtual machine TestVM.