押し付けがましい広告を表示するサイトに対する広告の設定 のレジストリ値 AdsSettingForIntrusiveAdsSitesコンピューターHKLM\Software\Policies\Microsoft\Edge

ポリシー ID
AdsSettingForIntrusiveAdsSites
適用対象
コンピューターの構成、ユーザーの構成
サポートされるバージョン
Microsoft Edge バージョン 78、Windows 7 以降
出典
Microsoft Edge Policy Templates (バージョン 155.0.4283.45)
カテゴリ
Microsoft Edge

レジストリ

AdsSettingForIntrusiveAdsSites

REG_DWORDコンピューターユーザー
…\Software\Policies\Microsoft\EdgeHKLM\Software\Policies\Microsoft\Edge 現在のキー
HKCU\Software\Policies\Microsoft\Edge
有効時の値
オプションの値に依存
要素
押し付けがましい広告を表示するサイトに対する広告の設定
オプション
項目保存される値
すべてのサイトで広告を許可する1
押し付けがましい広告を表示するサイトで広告をブロックする (既定値)2
.reg · CMD · PowerShell で適用する
コンピューターコンピューター全体の設定
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]

; 選択項目 (1 つだけ使用)
; すべてのサイトで広告を許可する
"AdsSettingForIntrusiveAdsSites"=dword:00000001
; 押し付けがましい広告を表示するサイトで広告をブロックする (既定値)
"AdsSettingForIntrusiveAdsSites"=dword:00000002
CMD
:: 選択項目 (1 つだけ使用)

:: すべてのサイトで広告を許可する
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "AdsSettingForIntrusiveAdsSites" /t REG_DWORD /d 1 /f
:: 押し付けがましい広告を表示するサイトで広告をブロックする (既定値)
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "AdsSettingForIntrusiveAdsSites" /t REG_DWORD /d 2 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# すべてのサイトで広告を許可する
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'AdsSettingForIntrusiveAdsSites' -PropertyType DWord -Value 1 -Force | Out-Null
# 押し付けがましい広告を表示するサイトで広告をブロックする (既定値)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'AdsSettingForIntrusiveAdsSites' -PropertyType DWord -Value 2 -Force | Out-Null
ユーザーアカウントごとの設定
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge]

; 選択項目 (1 つだけ使用)
; すべてのサイトで広告を許可する
"AdsSettingForIntrusiveAdsSites"=dword:00000001
; 押し付けがましい広告を表示するサイトで広告をブロックする (既定値)
"AdsSettingForIntrusiveAdsSites"=dword:00000002
CMD
:: 選択項目 (1 つだけ使用)

:: すべてのサイトで広告を許可する
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "AdsSettingForIntrusiveAdsSites" /t REG_DWORD /d 1 /f
:: 押し付けがましい広告を表示するサイトで広告をブロックする (既定値)
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "AdsSettingForIntrusiveAdsSites" /t REG_DWORD /d 2 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# すべてのサイトで広告を許可する
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'AdsSettingForIntrusiveAdsSites' -PropertyType DWord -Value 1 -Force | Out-Null
# 押し付けがましい広告を表示するサイトで広告をブロックする (既定値)
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'AdsSettingForIntrusiveAdsSites' -PropertyType DWord -Value 2 -Force | Out-Null