joefitzgerald / packer-windows

Windows Packer Templates
MIT License
1.63k stars 1.12k forks source link

Windows Server 2019 win-updates.ps1 issue #277

Closed BirknerAlex closed 5 years ago

BirknerAlex commented 5 years ago

Hi,

I am trying to create a Windows Server 2019 image. It seems that Microsoft has finally fixed the Windows Server update speed but if I'm going to use your win-updates.ps1 script while creating the image, I am stuck in a endless reboot loop.

I am not sure yet what the exactly issue is but it seems Restart-Computer does not install the pending updates before rebooting.

So the server reboots and tries always to install the same updates again over and over. If I close the win-updates.ps1 script and reboot the machine manually over the start menu it seems to install that updates.

Has anyone an idea how to tell Windows 2019 to install pending updates when using Restart-Computer?

Thanks in advance!

Regards Alexander

BirknerAlex commented 5 years ago

Hi,

just want to let you know, I've found the solution on a fork PR: https://github.com/StefanScherer/packer-windows/pull/149

Regards Alexander