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

8 lines
125 B
PowerShell
Raw Normal View History

2014-02-16 19:42:20 +00:00
Param(
[Parameter(Mandatory=$true)]
[string]$VmId
)
$VM = Get-VM -Id $VmId -ErrorAction "Stop"
Remove-VM $VM -Force