Action to take on Microsoft Edge startup: registry value RestoreOnStartup (Recommended)ComputerHKLM\Software\Policies\Microsoft\Edge\Recommended

Policy ID
RestoreOnStartup_recommended
Scope
Computer Configuration, User Configuration
Supported on
Microsoft Edge version 77, Windows 7 or later
Source
Microsoft Edge Policy Templates (version 155.0.4283.45)
Category
Microsoft Edge - Default Settings (users can override) › Startup, home page and new tab page

Registry

RestoreOnStartup

REG_DWORDComputerUser
Enabled value
Depends on the option value
Element
Action to take on Microsoft Edge startup
Options
ItemStored value
Open a new tab5
Restore the last session1
Open a list of URLs4
Open a list of URLs and restore the last session6
Apply with .reg · CMD · PowerShell
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge\Recommended]

; Options (use only one)
; Open a new tab
"RestoreOnStartup"=dword:00000005
; Restore the last session
"RestoreOnStartup"=dword:00000001
; Open a list of URLs
"RestoreOnStartup"=dword:00000004
; Open a list of URLs and restore the last session
"RestoreOnStartup"=dword:00000006
CMD
:: Options (use only one)

:: Open a new tab
reg add "HKLM\Software\Policies\Microsoft\Edge\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 5 /f
:: Restore the last session
reg add "HKLM\Software\Policies\Microsoft\Edge\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 1 /f
:: Open a list of URLs
reg add "HKLM\Software\Policies\Microsoft\Edge\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 4 /f
:: Open a list of URLs and restore the last session
reg add "HKLM\Software\Policies\Microsoft\Edge\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 6 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge\Recommended' -Force | Out-Null

# Options (use only one)
# Open a new tab
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge\Recommended' -Name 'RestoreOnStartup' -PropertyType DWord -Value 5 -Force | Out-Null
# Restore the last session
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge\Recommended' -Name 'RestoreOnStartup' -PropertyType DWord -Value 1 -Force | Out-Null
# Open a list of URLs
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge\Recommended' -Name 'RestoreOnStartup' -PropertyType DWord -Value 4 -Force | Out-Null
# Open a list of URLs and restore the last session
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge\Recommended' -Name 'RestoreOnStartup' -PropertyType DWord -Value 6 -Force | Out-Null
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge\Recommended]

; Options (use only one)
; Open a new tab
"RestoreOnStartup"=dword:00000005
; Restore the last session
"RestoreOnStartup"=dword:00000001
; Open a list of URLs
"RestoreOnStartup"=dword:00000004
; Open a list of URLs and restore the last session
"RestoreOnStartup"=dword:00000006
CMD
:: Options (use only one)

:: Open a new tab
reg add "HKCU\Software\Policies\Microsoft\Edge\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 5 /f
:: Restore the last session
reg add "HKCU\Software\Policies\Microsoft\Edge\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 1 /f
:: Open a list of URLs
reg add "HKCU\Software\Policies\Microsoft\Edge\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 4 /f
:: Open a list of URLs and restore the last session
reg add "HKCU\Software\Policies\Microsoft\Edge\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 6 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge\Recommended' -Force | Out-Null

# Options (use only one)
# Open a new tab
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge\Recommended' -Name 'RestoreOnStartup' -PropertyType DWord -Value 5 -Force | Out-Null
# Restore the last session
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge\Recommended' -Name 'RestoreOnStartup' -PropertyType DWord -Value 1 -Force | Out-Null
# Open a list of URLs
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge\Recommended' -Name 'RestoreOnStartup' -PropertyType DWord -Value 4 -Force | Out-Null
# Open a list of URLs and restore the last session
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge\Recommended' -Name 'RestoreOnStartup' -PropertyType DWord -Value 6 -Force | Out-Null