Stop your computer updating
Right-click on that option and choose “Disable” from the menu.
Users have also reported that in some cases, Windows 10 can switch this setting back on automatically.
Then, press Alt F4 to access the Shut Down Windows dialog box.
To shut down without installing updates, select “Shut down” from the drop-down list. You can also shut down your PC immediately from the login screen. Then, in the lower-right corner of the login screen, click the power button and select “Shut down” from the popup menu. Lastly, if you need do do this from a script, you run the following shutdown command in a Command Prompt window.
While Windows Update can be obnoxious, it keeps your computer secure and is well worth using.
It can also be made less obnoxious with a few quick settings changes.
Another way for non-Insiders to control when Windows 10 restarts following an update is through the Control Panel.
Right-click the Start button and select Control Panel Update Orchestrator.
The software giant has long been criticized by Windows 10 users for its aggressive approach to applying updates, and it's introducing some new options to prevent annoying reboots.
You can still check for updates manually, however, at a time more convenient for you.
Depending on which version of Windows you have, the process may be a little different.
Type the following command at the prompt and press Enter.
Windows 10, like previous versions of Microsoft’s operating system, often needs to reboot to action an update, and will occasionally do so at the least appropriate moment -- as this pro-gamer can testify.