Action on startup: registry value RestoreOnStartup (Chrome)UserHKCU\Software\Policies\Google\Chrome
- Policy ID
- RestoreOnStartup
- 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 › Startup, Home page and New Tab page
Registry
RestoreOnStartup
REG_DWORDUserComputer…\Software\Policies\Google\ChromeHKCU\Software\Policies\Google\Chrome Current key
HKLM\Software\Policies\Google\Chrome
HKLM\Software\Policies\Google\Chrome
- Enabled value
- Depends on the option value
- Element
- Action on startup
| Item | Stored value |
|---|---|
| Open New Tab Page | 5 |
| Restore the last session | 1 |
| Open a list of URLs | 4 |
| Open a list of URLs and restore the last session | 6 |
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Google\Chrome] ; 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" /v "RestoreOnStartup" /t REG_DWORD /d 5 /f :: Restore the last session reg add "HKCU\Software\Policies\Google\Chrome" /v "RestoreOnStartup" /t REG_DWORD /d 1 /f :: Open a list of URLs reg add "HKCU\Software\Policies\Google\Chrome" /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" /v "RestoreOnStartup" /t REG_DWORD /d 6 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\Software\Policies\Google\Chrome' -Force | Out-Null # Options (use only one) # Open New Tab Page New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'RestoreOnStartup' -PropertyType DWord -Value 5 -Force | Out-Null # Restore the last session New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'RestoreOnStartup' -PropertyType DWord -Value 1 -Force | Out-Null # Open a list of URLs New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -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' -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] ; 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" /v "RestoreOnStartup" /t REG_DWORD /d 5 /f :: Restore the last session reg add "HKLM\Software\Policies\Google\Chrome" /v "RestoreOnStartup" /t REG_DWORD /d 1 /f :: Open a list of URLs reg add "HKLM\Software\Policies\Google\Chrome" /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" /v "RestoreOnStartup" /t REG_DWORD /d 6 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Google\Chrome' -Force | Out-Null # Options (use only one) # Open New Tab Page New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'RestoreOnStartup' -PropertyType DWord -Value 5 -Force | Out-Null # Restore the last session New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'RestoreOnStartup' -PropertyType DWord -Value 1 -Force | Out-Null # Open a list of URLs New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -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' -Name 'RestoreOnStartup' -PropertyType DWord -Value 6 -Force | Out-Null