起動時の操作 のレジストリ値 RestoreOnStartup (Chrome)ユーザーHKCU\Software\Policies\Google\Chrome
- ポリシー ID
- RestoreOnStartup
- 適用対象
- コンピューターの構成、ユーザーの構成
- サポートされるバージョン
- Microsoft Windows 7 以降
- 出典
- Google Chrome Policy Templates (バージョン 156.0.8078.80)
- カテゴリ
- Google › Google Chrome › 起動ページ、ホームページ、新しいタブページ
レジストリ
RestoreOnStartup
REG_DWORDユーザーコンピューター…\Software\Policies\Google\ChromeHKCU\Software\Policies\Google\Chrome 現在のキー
HKLM\Software\Policies\Google\Chrome
HKLM\Software\Policies\Google\Chrome
- 有効時の値
- オプションの値に依存
- 要素
- 起動時の操作
| 項目 | 保存される値 |
|---|---|
| 新しいタブ ページを開く | 5 |
| 最後のセッションを復元する | 1 |
| URL のリストを開く | 4 |
| URL を開き、最後のセッションを復元する | 6 |
.reg · CMD · PowerShell で適用する
ユーザーアカウントごとの設定
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Google\Chrome] ; 選択項目 (1 つだけ使用) ; 新しいタブ ページを開く "RestoreOnStartup"=dword:00000005 ; 最後のセッションを復元する "RestoreOnStartup"=dword:00000001 ; URL のリストを開く "RestoreOnStartup"=dword:00000004 ; URL を開き、最後のセッションを復元する "RestoreOnStartup"=dword:00000006
CMD
:: 選択項目 (1 つだけ使用) :: 新しいタブ ページを開く reg add "HKCU\Software\Policies\Google\Chrome" /v "RestoreOnStartup" /t REG_DWORD /d 5 /f :: 最後のセッションを復元する reg add "HKCU\Software\Policies\Google\Chrome" /v "RestoreOnStartup" /t REG_DWORD /d 1 /f :: URL のリストを開く reg add "HKCU\Software\Policies\Google\Chrome" /v "RestoreOnStartup" /t REG_DWORD /d 4 /f :: URL を開き、最後のセッションを復元する reg add "HKCU\Software\Policies\Google\Chrome" /v "RestoreOnStartup" /t REG_DWORD /d 6 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKCU:\Software\Policies\Google\Chrome' -Force | Out-Null # 選択項目 (1 つだけ使用) # 新しいタブ ページを開く New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'RestoreOnStartup' -PropertyType DWord -Value 5 -Force | Out-Null # 最後のセッションを復元する New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'RestoreOnStartup' -PropertyType DWord -Value 1 -Force | Out-Null # URL のリストを開く New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'RestoreOnStartup' -PropertyType DWord -Value 4 -Force | Out-Null # URL を開き、最後のセッションを復元する New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'RestoreOnStartup' -PropertyType DWord -Value 6 -Force | Out-Null
コンピューターコンピューター全体の設定
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome] ; 選択項目 (1 つだけ使用) ; 新しいタブ ページを開く "RestoreOnStartup"=dword:00000005 ; 最後のセッションを復元する "RestoreOnStartup"=dword:00000001 ; URL のリストを開く "RestoreOnStartup"=dword:00000004 ; URL を開き、最後のセッションを復元する "RestoreOnStartup"=dword:00000006
CMD
:: 選択項目 (1 つだけ使用) :: 新しいタブ ページを開く reg add "HKLM\Software\Policies\Google\Chrome" /v "RestoreOnStartup" /t REG_DWORD /d 5 /f :: 最後のセッションを復元する reg add "HKLM\Software\Policies\Google\Chrome" /v "RestoreOnStartup" /t REG_DWORD /d 1 /f :: URL のリストを開く reg add "HKLM\Software\Policies\Google\Chrome" /v "RestoreOnStartup" /t REG_DWORD /d 4 /f :: URL を開き、最後のセッションを復元する reg add "HKLM\Software\Policies\Google\Chrome" /v "RestoreOnStartup" /t REG_DWORD /d 6 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKLM:\Software\Policies\Google\Chrome' -Force | Out-Null # 選択項目 (1 つだけ使用) # 新しいタブ ページを開く New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'RestoreOnStartup' -PropertyType DWord -Value 5 -Force | Out-Null # 最後のセッションを復元する New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'RestoreOnStartup' -PropertyType DWord -Value 1 -Force | Out-Null # URL のリストを開く New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'RestoreOnStartup' -PropertyType DWord -Value 4 -Force | Out-Null # URL を開き、最後のセッションを復元する New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'RestoreOnStartup' -PropertyType DWord -Value 6 -Force | Out-Null