Action on startup: registry value RestoreOnStartup (Recommended)UserHKCU\Software\Policies\Google\Chrome\Recommended

Policy ID
RestoreOnStartup_recommended
Scope
Computer Configuration, User Configuration
Supported on
Microsoft Windows 7 or later
Source
Google Chrome Policy Templates (version 156.0.8078.80)
Category
Google › Google Chrome - Default Settings (users can override) › Startup, Home page and New Tab page

Registry

RestoreOnStartup

REG_DWORDUserComputer
Enabled value
Depends on the option value
Element
Action on startup
Options
ItemStored value
Open New Tab Page5
Restore the last session1
Open a list of URLs4
Open a list of URLs and restore the last session6
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Google\Chrome\Recommended]

; Options (use only one)
; Open New Tab Page
"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 New Tab Page
reg add "HKCU\Software\Policies\Google\Chrome\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 5 /f
:: Restore the last session
reg add "HKCU\Software\Policies\Google\Chrome\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 1 /f
:: Open a list of URLs
reg add "HKCU\Software\Policies\Google\Chrome\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 4 /f
:: Open a list of URLs and restore the last session
reg add "HKCU\Software\Policies\Google\Chrome\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 6 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\Software\Policies\Google\Chrome\Recommended' -Force | Out-Null

# Options (use only one)
# Open New Tab Page
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome\Recommended' -Name 'RestoreOnStartup' -PropertyType DWord -Value 5 -Force | Out-Null
# Restore the last session
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome\Recommended' -Name 'RestoreOnStartup' -PropertyType DWord -Value 1 -Force | Out-Null
# Open a list of URLs
New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome\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\Google\Chrome\Recommended' -Name 'RestoreOnStartup' -PropertyType DWord -Value 6 -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\Recommended]

; Options (use only one)
; Open New Tab Page
"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 New Tab Page
reg add "HKLM\Software\Policies\Google\Chrome\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 5 /f
:: Restore the last session
reg add "HKLM\Software\Policies\Google\Chrome\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 1 /f
:: Open a list of URLs
reg add "HKLM\Software\Policies\Google\Chrome\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 4 /f
:: Open a list of URLs and restore the last session
reg add "HKLM\Software\Policies\Google\Chrome\Recommended" /v "RestoreOnStartup" /t REG_DWORD /d 6 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Google\Chrome\Recommended' -Force | Out-Null

# Options (use only one)
# Open New Tab Page
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome\Recommended' -Name 'RestoreOnStartup' -PropertyType DWord -Value 5 -Force | Out-Null
# Restore the last session
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome\Recommended' -Name 'RestoreOnStartup' -PropertyType DWord -Value 1 -Force | Out-Null
# Open a list of URLs
New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome\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\Google\Chrome\Recommended' -Name 'RestoreOnStartup' -PropertyType DWord -Value 6 -Force | Out-Null