Edit: I found out, there's another policy with very similar effects, so I updated this post to include that too.
You need to disable "Sign-in and lock last interactive user automatically after a restart" and "Configure the mode of automatically signing in and locking last interactive user after a restart or cold boot" policies in Group Policy. There supposed to be a more user friendly place for this somewhere but I couldn't found it. I guess Group Policy is the solution then. Or manually modify the registry keys.
If you have access to Group Policy edit
- Open Start Menu
- Search for "Edit Group Policy"
- Navigate on the left part of the window to Local Computer Policy -> Computer Configuration -> Administrative Templates ->Windows Components -> Windows Logon Options
- In the center/right part of the window, double click "Sign-in and lock last interactive user automatically after a restart" to edit
- Select "Disable"
- Click OK
- Double click "Configure the mode of automatically signing in and locking last interactive user after a restart or cold boot" to edit
- Select "Disable"
- Click OK
If you don't have access to Group Policy edit, then edit the registry
- Open Start Menu
- Search for regedit
- Select Registry Edit
- Now your computer will prompt for administrator rights if UAC is enabled. Click Yes
- Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System on the left part of the window.
- Double click on "DisableAutomaticRestartSignOn" the right-center part of the screen. If it does not exist, Right click->New->DWord (32 bit) Value enter the name, and press enter. Now you can double click it
- To Value data field enter 1, and check Hexadecimal radio button.
- Click OK
- Right click on "AutomaticRestartSignOnConfig" -> Delete -> Yes
For the curious minded I can recommend reading the information you can see in Group Policy Editor or visit the official documentation: https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/component-updates/winlogon-automatic-restart-sign-on--arso-
Maybe it's a bit late, but hopefully it will help someone. I always forget it, so at least I have it written down for myself :D
Have a nice day! ^^