In Windows 10 latest versions, a new “feature” has appeared, which is enabled by default - the automatic launch of programs that were launched at the time of completion the next time you turn on the computer and log in. This does not work for all programs, but for many - yes (it’s easy to check, for example, Task Manager, browser - restarting occurs).
This manual details how this happened and how to disable the automatic launch of previously executed programs in Windows 10 when you log in (and even before logging in) in several ways. Keep in mind that this is not an autoload of programs (prescribed in the registry or special folders, see: Autoload of programs in Windows 10 ) and we are not talking about unwanted things, such as those described in the instructions: The browser itself starts with advertising when you log in to Windows .
Disabling restarting programs at login
If you need to disable the automatic launch of open programs when you turn on a computer or laptop with Windows 10, doing this is very simple:
- Go to Start - Settings - Accounts (or press Win + I).
- Open the "Login Options" section, scroll down the list of options and in the "Privacy" section, disable the "Use my login details to automatically complete the device settings and open my applications after restart or update".
Usually these changes are enough to prevent non-closed programs from starting again when you log in again.
How does the automatic launch of programs open at shutdown work?
Judging by the behavior of the program restart process, the essence of the innovation is that now the “Shutdown” icon in the Start menu shuts down the computer using the shutdown.exe / sg / hybrid / t 0 command where the / sg parameter is responsible for restarting applications. This parameter has not been used before.
Separately, I note that by default, restarted programs can run even before entering the system, i.e. while you are on the lock screen, for which the option “Use my data to log in to automatically complete the device settings after a restart or update” is responsible (about the parameter - later in the article).
Usually this does not present a problem (provided that you need a restart), but in some cases it can cause inconvenience: I recently received a description of such a case in the comments - when I turn on, it restarts a previously opened browser that has tabs with automatic playback of audio / video, as a result, the sound of playing content is already heard on the lock screen.
Additional methods to disable automatic restart programs
There are several ways to disable the launch of programs that are not closed when you turn off the programs at the entrance to the system, and sometimes, as described above, even before entering Windows 10.
- The most obvious (which is for some reason recommended on Microsoft forums) is to close all programs before shutting down.
- The second, less obvious, but slightly more convenient is to hold down the Shift key while pressing “Shutdown” in the Start menu.
- Create your own shortcut for shutting down, which will turn off the computer or laptop so that the programs are not restarted.
The first two points, I hope, do not require explanation, and the third I will describe in more detail. The steps to create such a shortcut will be as follows:
- Right-click in an empty area of the desktop and select "Create" - "Shortcut" from the context menu.
- In the "Enter object location" field, enter % WINDIR% \ system32 \ shutdown.exe / s / hybrid / t 0
- In the "Label Name" enter what you want, for example, "Shutdown".
- Right-click on the shortcut and select "Properties". Here I recommend that you set “Collapsed to Icon” in the “Window” field, as well as click the “Change Icon” button and select a more visible icon for the shortcut.
Done. You can fix this shortcut (via the context menu) in the taskbar, on the Start screen as a tile, or place it in the Start menu by copying it to the % PROGRAMDATA% \ Microsoft \ Windows \ Start Menu \ Programs folder (paste this path in the address bar of the explorer to immediately get to the desired folder).
To always show the shortcut at the top of the Start menu application list, you can set a character in front of the name (shortcuts are sorted alphabetically and the punctuation marks and some other characters are the first in this alphabet).
That's all. I hope the material will be useful.