G
G
Grigory Bondarenko2020-02-06 18:25:03
Windows
Grigory Bondarenko, 2020-02-06 18:25:03

Automatic Windows 10 build updates with reboots only after business hours - how?

For several months now I have been trying to set up automatic Windows updates in the enterprise in a way that does not interfere with users and does not distract me. And if everything worked out with cumulative updates, then assembly updates cannot be automated. There are the following problems:
1. After a new assembly has been installed, the user is prompted to restart the computer, despite the enabled policy "Disable automatic restart for updates during active period". This distracts users and provokes stupid questions addressed to me;
2. If, God forbid, the user agrees with the reboot, then he may be left without a computer for the next half an hour or an hour, and now I will not have questions, but indignation;
3. Evening automatic reboot according to the scheduler does not lead to the application of a new assembly. In order for the assembly to be applied, you need to manually click on the "restart now" button in the "Update and Security" window, or select "Update and Restart" in the start menu.
What has been done:
1. With the help of group policies, users are prohibited from turning off computers;
2. A script is installed on the computers in the scheduler that checks the user's activity in the evening and restarts the computer after half an hour of inactivity. After the reboot, the script turns off the computer.
3. Third party utilities have been tried: downloadinstallpatches.ps1 and shutdownWithUpdates.exe. There was an attempt to apply the installed build 1909 on O / C with build 1809 - both utilities only rebooted the computer, but the build was not applied. Everything turned out only after pressing the start menu "update and restart".
Please help! Maybe there are some tricky group policies or special tricks? Or it can postpone the installation of updates altogether for the evening, but then how will my script know when it is already possible to turn off the computer? After all, working for days is also not a good thing.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
Grigory Bondarenko, 2021-04-19
@yurybx

A year later, I found a solution!
It turns out that Windows 10 has an undocumented option to apply updates on a normal reboot: to do this, you need to set the DWORD value to 1 for the default key in the section:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\InstallAtShutdown
This section has specific permissions, so I was able to change it only with the command regedit /s import_file_name.reg.
Information taken from Denis Babkin's blog:
https://dennisbabkin.com/blog/?t=how-to-enable-ins...

R
Radjah, 2020-02-06
@Radjah

https://docs.microsoft.com/en-us/windows/deploymen...
There is quite a lot about activity periods, maybe the period is not long enough?
Well, to install updates during operation - this is it. Can't this kind of fun be transferred to the night?

E
Eugene, 2020-02-07
@zloy_zaya

It seems to me that similar tasks are solved by means of SCCM/WSUS. Then the update server downloads the update, and then "push" updates at the specified time (at night, or when you set it up).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question