Change the Windows updates install time on Hyper-V Server

I needed to change the install time of Windows updates on a Hyper-V Server 2016 from the default of 03:00 to 01:00. There is an Option in sconfig (the blue menu box) to change the Windows update install behavior from manual to automatic but there is no option to change the time when the installation of the updates should happen so it defaults to 3:00 AM. It is also not possible to install the Windows update Cmdlets that would allow us to change the configuration of the Windows updates because that feature does not exist in Hyper-V Server.

So the solution is to directly edit the registy of the server. Open regedit and navigate to the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU

Add a DWORD 32 bit value with the following Name:

ScheduledInstallTime

Set the entry to the full hour of the day you want the system to install updates. For example if you want the system to install the updates on 01:00 set the value to ‘1’. If you want the system to install updates on 23:00 set the value to 23. Don’t forget to change the base in the Regedit dialog to ‘Decimal’ if you want to set a value greater than 9.

It is only possible to set the time to the full hour.

After the Change restart the Windows update Service with the following commands:

net stop wuauserv
net start wuauserv

You can find a full list with registry options for Windows updates on the following website:

https://technet.microsoft.com/en-us/library/cc708449(v=ws.10)

Leave a Reply

Your email address will not be published. Required fields are marked *