From 061dbecd61de15c0028742298d864f0236afe1f1 Mon Sep 17 00:00:00 2001 From: Stephan Wild Date: Sat, 4 Jul 2020 13:42:43 +0200 Subject: [PATCH] Include Hyper-V secure boot template in box.xml --- common/powershell/hyperv/hyperv.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/powershell/hyperv/hyperv.go b/common/powershell/hyperv/hyperv.go index 58163831d..75cf4a82f 100644 --- a/common/powershell/hyperv/hyperv.go +++ b/common/powershell/hyperv/hyperv.go @@ -775,6 +775,7 @@ if (Test-Path -Path ([IO.Path]::Combine($path, $vmName, 'Virtual Machines', '*.V Optical False + MicrosoftWindows $($vm.Notes) @@ -795,6 +796,7 @@ if (Test-Path -Path ([IO.Path]::Combine($path, $vmName, 'Virtual Machines', '*.V if ((Hyper-V\Get-VMFirmware -VM $vm).SecureBoot -eq [Microsoft.HyperV.PowerShell.OnOffState]::On) { $config.configuration.secure_boot_enabled.'#text' = 'True' + $config.configuration.secure_boot_template.'#text' = (Hyper-V\Get-VMFirmware -VM $vm).SecureBootTemplate } else {