Here are the instructions to disable auto restarts for windows 10 Pro and Home editions. Si vous avez a different version (education, enterprise) the process is different - update your question to that effect and I'll add that info.
There are two methods provided. The first is Pro only. Win 10 home doesn't have the stratégie de groupe editor so it has to be configured via le registre. This registry method will work for both Pro and Home.
I confirmed that cela fonctionne on the Anniversary update version (win 10 pro).
There is one caveat - a user must be logged in for this approach to work.
Win 10 Pro:
Press win+R then type gpedit.msc and press enter
Cela va ouvrez le stratégie de groupe editor. Browse through the 'tree' to the following entry:
Computer Configuration > Administrative Templates > Windows Components > Windows Update.
Look à droite panel and search for the option named No auto-restart with logged on users for scheduled automatic updates installations.
Double-cliquez sur on it, then change the radio button in the popup window that will appear from not configured to enabled and cliquez sur OK.
To make the system immediately apply the changes you just made, press WIN + R again and issue the gpupdate /force command
Win 10 Pro (alternative method) and Home:
Press win+R; type regedit and press enter.
Browse to the following registry entry:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
If you do not have a WindowsUpdate and/or AU entry, vous devez create them. Follow the 'source' link below for add'l info on how to do this.
Inside the AU key, create a new 32-bit DWORD called NoAutoRebootWithLoggedOnUsers, then double-cliquez sur on it and set its hex value to 1.
You'll have to reboot for the change to be applied.
Another alternative - home or pro
If for whatever reason the approach above doesn't work, vous pouvez get around automatic reboots by changing your windows update settings so that you only download updates automatically and it requests approval before installing them. Once you approve installation you are at the mercy of when Windows reboots, but you have the ability to otherwise indefinitely delay it.
To change this setting:
Press win+R; type regedit and press enter.
Browse to the following registry entry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update
Change the value of the key (create it if needed) AUOptions to a '3' (which configures windows update to download updates automatically but require user confirmation before installing them).
source