Restore-LabVMSnapshot

SYNOPSIS

Restore a snapshot

SYNTAX

ByName

Restore-LabVMSnapshot -ComputerName <String[]> -SnapshotName <String> [<CommonParameters>]

All

Restore-LabVMSnapshot -SnapshotName <String> [-All] [<CommonParameters>]

DESCRIPTION

Restores a named snapshot on one or more machines

EXAMPLES

Example 1

PS C:\> Restore-LabVMSnapshot -SnapshotName BeforeDestroyingTheWorld -All

Restore the snapshot from before destroying the world.

PARAMETERS

-All

Indicates that the snapshot should be restored on all machines

Type: SwitchParameter
Parameter Sets: All
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ComputerName

The computer names

Type: String[]
Parameter Sets: ByName
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-SnapshotName

The snapshot name

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES