vagrant/plugins/providers/hyperv/scripts/restore_snapshot.ps1

9 lines
182 B
PowerShell
Raw Normal View History

2016-03-05 16:41:18 +00:00
Param(
[Parameter(Mandatory=$true)]
[string]$VmId,
[string]$SnapName
)
$VM = Get-VM -Id $VmId -ErrorAction "Stop"
Restore-VMSnapshot $VM -Name $SnapName -Confirm:$false