Whenever you shut down or restart your PC, Windows 10 gives you the option to save your work before closing any open programs. If so, just press the button Cancel at the bottom of the window and save your open work. However, if you have already saved your work, click on the file Close anyway at the bottom of the window. If you don't choose anything for a minute, you will return to the desktop.
But, if you want to shut down or restart your Windows 10 PC automatically, typing the message and saving some time, you simply need to make some registry changes. However, before making any changes, make sure you get used to saving your work every time before restarting or shutting down your Windows 10 PC.
How to configure Windows 10 to automatically close apps during shutdown / restart via registry editor
Step 1: print Tasto Windows + R to open the file run box. Gender Regedit in the box and press ok to open the file Registry Editor.
Step 2: A Registry Editor, go to the following path:
Leave Desk right click on it, select Newand then click String value.
Step 3: Name the new string value AutoEndTasks string, double click on it and configure the file Valuable data to 1. press the ok and restart your PC for the changes to take effect.
From now on, whenever you shut down or restart your PC, Windows 10 will ignore the message and automatically close all active programs regardless of whether your work has been saved or not.
In case you want to go back to the default settings, remove the AutoEndTasks string or just change the value data to 0.