Policy
Sign-in and lock last interactive user automatically after a restart
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows10, Windows10RT
This policy setting controls whether a device will automatically sign in and lock the last interactive user after the system restarts or after a shutdown and cold boot. This only occurs if the last interactive user didn’t sign out before the restart or shutdown. If the device is joined to Active Directory or Azure Active Directory, this policy only applies to Windows Update restarts. Otherwise, this will apply to both Windows Update restarts and user-initiated restarts and shutdowns. If you don’t configure this policy setting, it is enabled by default. When the policy is enabled, the user is automatically signed in and the session is automatically locked with all lock screen apps configured for that user after the device boots. After enabling this policy, you can configure its settings through the ConfigAutomaticRestartSignOn policy, which configures the mode of automatically signing in and locking the last interactive user after a restart or cold boot. If you disable this policy setting, the device does not configure automatic sign in. The user’s lock screen apps are not restarted after the system restarts.
Registry values
How enabled and disabled states update the registry.
| Registry location | Type | Enabled value | Disabled value |
|---|---|---|---|
| HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableAutomaticRestartSignOn | REG_DWORD | 0 | 1 |
Policy elements
Inputs and configuration options exposed by this policy.
This policy has no additional user input fields.
Other policies in this category
Explore related policies at the same level.
- ComputerConfigure the mode of automatically signing in and locking last interactive user after a restart or cold bootAt least Windows 10 Version 1903
- ComputerConfigure the transmission of the user's password in the content of MPR notifications sent by winlogon.At least Windows 10 Version 1903
- ComputerDisable or enable software Secure Attention SequenceAt least Windows Vista
- ComputerDisplay information about previous logons during user logonAt least Windows Vista
- UserRemove logon hours expiration warningsAt least Windows Vista
- ComputerReport when logon server was not available during user logonAt least Windows Vista
- UserReport when logon server was not available during user logonAt least Windows Vista
- UserSet action to take when logon hours expireAt least Windows Vista