Cannot restart automatic updating
You should set a combination of the following registry values, in order to configure active hours.Under HKLM\Software\Policies\Microsoft\Windows\Windows Update use Set Active Hours to enable or disable active hours and Active Hours Start, Active Hours End to specify the range of active hours.This method is not recommended, and should only be used when neither Group Policy or MDM are available.Any settings configured through Registry may conflict with any existing configuration that uses any of the methods mentioned above.While not recommended, the same result can be achieved through Registry.Under HKLM\Software\Policies\Microsoft\Windows\Windows Update\AU, set Au Options to 4, set the install time with Scheduled Install Time, enable Always Auto Reboot At Scheduled Time and specify the delay in minutes through Always Auto Reboot At Scheduled Time Minutes.Automatic restarts after an update will occur outside of the active hours.By default, active hours are from 8 AM to 5 PM on PCs and from 5 AM to 11 PM on phones. Starting with Windows 10, version 1703, you can also specify the max active hours range.
To configure this behavior through Group Policy, go to Computer Configuration\Administrative Templates\Windows Components\Windows Update and select Configure auto-restart required notification for updates.
Alternatively, you can specify that installation will occur during the automatic maintenance time (configured using Computer Configuration\Administrative Templates\Windows Components\Maintenance Scheduler).
Always automatically restart at the scheduled time forces a restart after the specified installation time and lets you configure a timer to warn a signed-in user that a restart is going to occur.
The max range is calculated from active hours start time.
To configure active hours max range through Group Policy, go to Computer Configuration\Administrative Templates\Windows Components\Windows Update and open the Specify active hours range for auto-restarts.
When Configure Automatic Updates is enabled in Group Policy, you can enable one of the following additional policies to delay an automatic reboot after update installation: You can also use Registry, to prevent automatic restarts when a user is signed in.