G
G
Grigory Bondarenko2021-04-23 15:59:25
Windows
Grigory Bondarenko, 2021-04-23 15:59:25

Install updates during the day, reboot only in the evening - how?

All the best!
Is there a way to set up Windows 10 so that:
1. Updates are downloaded and installed throughout the day;
2. Computers did not reboot , even if the update required it, and even if the user left for lunch;
3. Allow reboot only in the evening, after the end of the working day.

From what I understand:
A) Setting the activity period allows you to avoid spontaneous reboots throughout the day, allows you to download updates, but blocks the installation of some updates, such as build updates.
B) When the build update has downloaded, Windows Update shows the message: "Updates will be installed automatically when you do not use the device. If you want, you can install them yourself." And below it is the "Install Now" button. If the user does not press it, the system will wait for the end of the activity period, but will not wait, because the user will turn off / put the computer to sleep when leaving.
C) The group policy "Configure automatic updates: 4 - automatic download and scheduled installation" does not solve the problem: the system waits for the end of the activity period.
D) The command "wuauclt /updatenow" does not start the installation of such updates.
E) There is a third-party solution: the "PSWindowsUpdate" PowerShell module, which can force the installation of updates, but I would like to achieve this using regular means.
Any idea how one can "click" the "Install Now" button programmatically?
I would use the "PSWindowsUpdate" module, but can the developers be trusted enough to install it on all computers in the enterprise?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MaxKozlov, 2021-04-26
@MaxKozlov

Here's something else I found
https://isazonov.wordpress.com/2020/04/24/usoclien...
UsoClient StartInstall
If it works for feature update, it will be great.
You can also look for these two lines in the 1.6.1.1 code
and add a third to them, it seems , this is the main thing that distinguishes the old and new versions.

$objInstaller = $objSession.CreateUpdateInstaller()
$objInstaller.Updates = $objCollectionTmp

$objInstaller.IsForced = $true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question