Remarque : Unfortunately this appears to not work on Windows 10 Home, and Je ne suis pas sûr of a workable solution for users of this edition.
I posted this as an answer on another question, but as that appears to be a duplicate of this question I'll provide it here too:
Vous pouvez edit your local stratégie de groupe settings to force Windows update to only download updates, but wait for your input to install (and therefore reboot.)
Ouvrez votre menu Démarrer and type Group, puis cliquez sur Modification stratégie de groupe
Expand either (depending on Windows 10 or 11 version):
Computer Configuration \ Administrative Templates \ Windows Components \ Windows Update
or: Computer Configuration \ Administrative Templates \ Windows Components \ Manage end user experiences \ Windows Update
or: Computer Configuration \ Administrative Templates \ All Settings
Double-cliquez sur Configure Automatic Updates and enable the policy, and configure it as needed.
Head back to Windows Update et cliquez sur Recherchez updates. Once it is done, cliquez sur the Advanced options
Vous devriez voir your new settings being 'enforced.'
After applying this setting on a test VM, I left Windows Update open and noticed it started downloading.
When it finishes downloading, you get a toast notification that there are updates and vous devez install them.
Notez que you must click install now. Restarting or shutting down from the menu Démarrer does not appear to trigger the install process.
Plus d'informations :
Je ne suis pas sûr if editing Local Stratégie de groupe is an option in the Home edition of Windows 10, but the same result should be possible through le registre (J'ain't tested this as J'ai utilisé the policy method myself). Including this in case non-pro users come looking for an answer too.
-
Appuyez sur Win + R and type regedit then appuyez sur Entrée
-
Naviguez vers HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU
(vous devrez peut-être create the keys manually if they don't exist)
-
Create a new DWORD value called AUOptions and enter a value of either 2 or 3.
2 = Notify before download
3 = Automatically download and notify of installation
-
Restart PC
-
Recherchez updates
-
Inspect Advanced Settings
Mise à jour following Anniversary Update (1607):
J'ai vu a lot a few comments lately from people saying this ne fonctionne plus after the Anniversary Update.
I've been running some tests, detailed in the two blog posts here:
These tests have been running for nearly three weeks and J'ai yet to see any forced reboots.
À la lumière de ces résultats, il apparaît que this fonctionne toujours.
Points à garder en tête :
I did not set any settings around Active Hours or the Reboot Options.
DO NOT cliquez sur le 'Install now' button within the Windows Update UI unless you're ready to install and reboot. Once the updates are installed, there is no stopping Windows from deciding to reboot.
Windows will nag you with Toasts, Action Center alerts and banners across your screen. As long as you don't install the updates you're fine (but do do them eventually.)