デフォルトの通知設定 のレジストリ値 DefaultNotificationsSettingコンピューターHKLM\Software\Policies\Google\Chrome
- ポリシー ID
- DefaultNotificationsSetting
- 適用対象
- コンピューターの構成、ユーザーの構成
- サポートされるバージョン
- Microsoft Windows 7 以降
- 出典
- Google Chrome Policy Templates (バージョン 156.0.8078.80)
- カテゴリ
- Google › Google Chrome › コンテンツの設定
レジストリ
DefaultNotificationsSetting
REG_DWORDコンピューターユーザー…\Software\Policies\Google\ChromeHKLM\Software\Policies\Google\Chrome 現在のキー
HKCU\Software\Policies\Google\Chrome
HKCU\Software\Policies\Google\Chrome
- 有効時の値
- オプションの値に依存
- 要素
- デフォルトの通知設定
| 項目 | 保存される値 |
|---|---|
| サイトに対してデスクトップ通知の表示を許可する | 1 |
| どのサイトにもデスクトップ通知の表示を許可しない | 2 |
| サイトでデスクトップ通知が表示される前に毎回確認する | 3 |
.reg · CMD · PowerShell で適用する
コンピューターコンピューター全体の設定
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome] ; 選択項目 (1 つだけ使用) ; サイトに対してデスクトップ通知の表示を許可する "DefaultNotificationsSetting"=dword:00000001 ; どのサイトにもデスクトップ通知の表示を許可しない "DefaultNotificationsSetting"=dword:00000002 ; サイトでデスクトップ通知が表示される前に毎回確認する "DefaultNotificationsSetting"=dword:00000003
CMD
:: 選択項目 (1 つだけ使用) :: サイトに対してデスクトップ通知の表示を許可する reg add "HKLM\Software\Policies\Google\Chrome" /v "DefaultNotificationsSetting" /t REG_DWORD /d 1 /f :: どのサイトにもデスクトップ通知の表示を許可しない reg add "HKLM\Software\Policies\Google\Chrome" /v "DefaultNotificationsSetting" /t REG_DWORD /d 2 /f :: サイトでデスクトップ通知が表示される前に毎回確認する reg add "HKLM\Software\Policies\Google\Chrome" /v "DefaultNotificationsSetting" /t REG_DWORD /d 3 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKLM:\Software\Policies\Google\Chrome' -Force | Out-Null # 選択項目 (1 つだけ使用) # サイトに対してデスクトップ通知の表示を許可する New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DefaultNotificationsSetting' -PropertyType DWord -Value 1 -Force | Out-Null # どのサイトにもデスクトップ通知の表示を許可しない New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DefaultNotificationsSetting' -PropertyType DWord -Value 2 -Force | Out-Null # サイトでデスクトップ通知が表示される前に毎回確認する New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DefaultNotificationsSetting' -PropertyType DWord -Value 3 -Force | Out-Null
ユーザーアカウントごとの設定
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Google\Chrome] ; 選択項目 (1 つだけ使用) ; サイトに対してデスクトップ通知の表示を許可する "DefaultNotificationsSetting"=dword:00000001 ; どのサイトにもデスクトップ通知の表示を許可しない "DefaultNotificationsSetting"=dword:00000002 ; サイトでデスクトップ通知が表示される前に毎回確認する "DefaultNotificationsSetting"=dword:00000003
CMD
:: 選択項目 (1 つだけ使用) :: サイトに対してデスクトップ通知の表示を許可する reg add "HKCU\Software\Policies\Google\Chrome" /v "DefaultNotificationsSetting" /t REG_DWORD /d 1 /f :: どのサイトにもデスクトップ通知の表示を許可しない reg add "HKCU\Software\Policies\Google\Chrome" /v "DefaultNotificationsSetting" /t REG_DWORD /d 2 /f :: サイトでデスクトップ通知が表示される前に毎回確認する reg add "HKCU\Software\Policies\Google\Chrome" /v "DefaultNotificationsSetting" /t REG_DWORD /d 3 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKCU:\Software\Policies\Google\Chrome' -Force | Out-Null # 選択項目 (1 つだけ使用) # サイトに対してデスクトップ通知の表示を許可する New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DefaultNotificationsSetting' -PropertyType DWord -Value 1 -Force | Out-Null # どのサイトにもデスクトップ通知の表示を許可しない New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DefaultNotificationsSetting' -PropertyType DWord -Value 2 -Force | Out-Null # サイトでデスクトップ通知が表示される前に毎回確認する New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DefaultNotificationsSetting' -PropertyType DWord -Value 3 -Force | Out-Null