Configure Pop-up Blocker
Configurer le bloqueur de fenêtres publicitaires
Explanation
This policy setting lets you decide whether to turn on Pop-up Blocker. By default, Pop-up Blocker is turned on..
If you enable this setting, Pop-up Blocker is turned on, stopping pop-up windows from appearing.
If you disable this setting, Pop-up Blocker is turned off, letting pop-ups windows appear.
If you don't configure this setting, employees can choose whether to use Pop-up Blocker.
Ce paramètre de stratégie vous permet de décider d’activer le bloqueur de fenêtres publicitaires. Par défaut, le bloqueur de fenêtres publicitaires est activé.
Si vous activez ce paramètre, le bloqueur de fenêtres publicitaires est activé, empêchant l’affichage des fenêtres publicitaires.
Si vous désactivez ce paramètre, le bloqueur de fenêtres publicitaires est désactivé, autorisant l’affichage des fenêtres publicitaires.
Si vous ne configurez pas ce paramètre, les employés peuvent choisir d’utiliser le bloqueur de fenêtres publicitaires.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\MicrosoftEdge\MainHKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\Main- Value name
AllowPopups
| State | Value written |
|---|---|
| Enabled | REG_SZ = yes |
| Disabled | REG_SZ = no |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Computer (HKLM)
Enable
# Enable: MicrosoftEdge/AllowPopups
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowPopups' -Value 'yes' -Type StringDisable
# Disable: MicrosoftEdge/AllowPopups
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowPopups' -Value 'no' -Type StringRevert to "Not configured"
# Revert to "Not configured": MicrosoftEdge/AllowPopups
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main'
Remove-ItemProperty -Path $k -Name 'AllowPopups' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"