Configure automatic sign in with an Active Directory domain account when there is no Azure AD domain account: registry value ConfigureOnPremisesAccountAutoSignInUserHKCU\Software\Policies\Microsoft\Edge

Policy ID
ConfigureOnPremisesAccountAutoSignIn
Scope
Computer Configuration, User Configuration
Supported on
Microsoft Edge version 81, Windows 7 or later
Source
Microsoft Edge Policy Templates (version 155.0.4283.45)
Category
Microsoft Edge

Registry

ConfigureOnPremisesAccountAutoSignIn

REG_DWORDUserComputer
Enabled value
Depends on the option value
Element
Configure automatic sign in with an Active Directory domain account when there is no Azure AD domain account
Options
ItemStored value
Disabled0
Sign in and make domain account non-removable1
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge]

; Options (use only one)
; Disabled
"ConfigureOnPremisesAccountAutoSignIn"=dword:00000000
; Sign in and make domain account non-removable
"ConfigureOnPremisesAccountAutoSignIn"=dword:00000001
CMD
:: Options (use only one)

:: Disabled
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ConfigureOnPremisesAccountAutoSignIn" /t REG_DWORD /d 0 /f
:: Sign in and make domain account non-removable
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ConfigureOnPremisesAccountAutoSignIn" /t REG_DWORD /d 1 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# Options (use only one)
# Disabled
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ConfigureOnPremisesAccountAutoSignIn' -PropertyType DWord -Value 0 -Force | Out-Null
# Sign in and make domain account non-removable
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ConfigureOnPremisesAccountAutoSignIn' -PropertyType DWord -Value 1 -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]

; Options (use only one)
; Disabled
"ConfigureOnPremisesAccountAutoSignIn"=dword:00000000
; Sign in and make domain account non-removable
"ConfigureOnPremisesAccountAutoSignIn"=dword:00000001
CMD
:: Options (use only one)

:: Disabled
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ConfigureOnPremisesAccountAutoSignIn" /t REG_DWORD /d 0 /f
:: Sign in and make domain account non-removable
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ConfigureOnPremisesAccountAutoSignIn" /t REG_DWORD /d 1 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# Options (use only one)
# Disabled
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ConfigureOnPremisesAccountAutoSignIn' -PropertyType DWord -Value 0 -Force | Out-Null
# Sign in and make domain account non-removable
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ConfigureOnPremisesAccountAutoSignIn' -PropertyType DWord -Value 1 -Force | Out-Null