From 0f743d0731c9a5406faa08455dd0c49f6883faf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Brala?= Date: Tue, 26 Sep 2017 16:03:35 +0200 Subject: [PATCH] Auto stop action is configured through auto start action. --- plugins/providers/hyperv/scripts/import_vm_vmcx.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/providers/hyperv/scripts/import_vm_vmcx.ps1 b/plugins/providers/hyperv/scripts/import_vm_vmcx.ps1 index f93230193..1bc175270 100644 --- a/plugins/providers/hyperv/scripts/import_vm_vmcx.ps1 +++ b/plugins/providers/hyperv/scripts/import_vm_vmcx.ps1 @@ -115,7 +115,7 @@ if ($auto_start_action) { } if ($auto_stop_action) { - Set-VM -VM $vmConfig.VM -AutomaticStartAction $auto_stop_action + Set-VM -VM $vmConfig.VM -AutomaticStopAction $auto_stop_action } # Only set EFI secure boot for Gen 2 machines, not gen 1