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

9 lines
195 B
PowerShell
Raw Normal View History

2014-02-16 19:42:20 +00:00
Param(
[Parameter(Mandatory=$true)]
[string]$VmId
)
2014-02-16 19:42:20 +00:00
# Shuts down virtual machine regardless of any unsaved application data
$VM = Get-VM -Id $VmId -ErrorAction "Stop"
Stop-VM $VM -Force