Windows updates - Server 2019

40 views
Skip to first unread message

Captain Grumpy

unread,
Feb 12, 2019, 6:19:42 AM2/12/19
to Packer
Wondering whether anyone has experienced the following issue?

I am using the win-updates.ps1 powershell script from StefanScherer's repo which has allowed me to successfully build Windows 2016 servers.


The script correctly identifies missing available updates from a Windows 2019 vmware-iso packer build.
It installs the necessary patches (the logfile created C:\Windows\Temp\win-updates.log) confirms this) - the logfile also confirms there are no applicable updates & Done Installing Windows Updates.

Packer then successfully completes the build (I am using winrm as a communicator).

However when I open the virtual machine (I keep it registered with the ESXi host I am building it on), and manually check for updates, I am prompted to install KB4480116 - 2019-01 Cumulative Update for Windows Server 2019.

This happens every time currently with my vmware-iso packer builds of Server 2019.  

FreKac

unread,
Feb 13, 2019, 10:40:52 AM2/13/19
to Packer
Also had trouble with that Cumulative update, didn't use the script that you linked to.
The windows update provisioner just ran in a loop with that update as well.


The new windows update powershell commands do work however, as far as I've seen.
Start-WUScan
Install-WUUpdates
Get-WUIsPendingReboot.

So you could always create a script for it using those commands.
While testing I only made a quick n' dirty test by running: Install-WUUpdates -Updates (Start-WUScan) 
In an inline powershell "script".

Captain Grumpy

unread,
Feb 18, 2019, 9:08:19 AM2/18/19
to Packer
Thanks for the suggestion FreKac.

I ran the original script again, after patch Tuesday.
This time things ran perfectly and installed the cumulative update 2019-02, completing the updates.
Reply all
Reply to author
Forward
0 new messages