- Click on the “Start” button and type
gpedit.msc
press Enter.
- In the Local Group Policy Editor, go to
Computer Configuration ->
->Administrative Templates->
-> Windows Components->
-> Windows Update
- Double-click on “No auto-restart with automatic installations of scheduled updates”.
- Select "Enabled", and then click "OK".
- Close the local group policy editor.
Source: https://answers.microsoft.com/en-us/windows/forum/all/disable-windows-10-automatic-restart-after-updates/16f1826d-a796-4de8-ac99-1d625420d265?auth=1