plugins/providers/hyperv/scripts/restore_snapshot.ps1 in vagrant-unbundled-2.0.1.0 vs plugins/providers/hyperv/scripts/restore_snapshot.ps1 in vagrant-unbundled-2.0.2.0
- old
+ new
@@ -2,7 +2,7 @@
[Parameter(Mandatory=$true)]
[string]$VmId,
[string]$SnapName
)
-$VM = Get-VM -Id $VmId -ErrorAction "Stop"
-Restore-VMSnapshot $VM -Name $SnapName -Confirm:$false
+$VM = Hyper-V\Get-VM -Id $VmId -ErrorAction "Stop"
+Hyper-V\Restore-VMSnapshot $VM -Name $SnapName -Confirm:$false