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

8 lines
142 B
PowerShell

Param(
[Parameter(Mandatory=$true)]
[string]$VmId
)
$VM = Hyper-V\Get-VM -Id $VmId -ErrorAction "Stop"
Hyper-V\Suspend-VM $VM