Open in the explorer

Disable Open in New Window menu option

Désactiver la commande Ouvrir dans une nouvelle fenêtre

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Browser menus FR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Menus du navigateur
Supported on
At least Internet Explorer 5.0 FR: Au moins Internet Explorer 5.0
ADMX file
inetres.admx
Internal name
inetres/NoOpeninNewWnd

Explanation

Prevents using the shortcut menu to open a link in a new browser window.

If you enable this policy, users cannot point to a link, click the right mouse button, and then click the Open in New Window command.

If you disable this policy or do not configure it, users can open a Web page in a new browser window by using the shortcut menu.

This policy can be used in coordination with the "File menu: Disable New menu option" policy, which prevents users from opening the browser in a new window by clicking the File menu, pointing to New, and then clicking Window.

Note: When users click the Open in New Window command, the link will not open in a new window and they will be informed that the command is not available.

French text from Windows 11 26H2

Empêche l’utilisation du menu contextuel pour ouvrir un lien dans une nouvelle fenêtre de navigation.

Si vous activez ce paramètre de stratégie, les utilisateurs ne peuvent pas pointer vers un lien, cliquer avec le bouton droit de la souris, puis cliquer sur la commande Ouvrir dans une nouvelle fenêtre.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les utilisateurs peuvent ouvrir une page Web dans une nouvelle fenêtre de navigation, en utilisant le menu contextuel.

Ce paramètre de stratégie peut être utilisé en coordination avec le paramètre de stratégie « Menu Fichier : désactiver la commande Nouveau », qui empêche les utilisateurs d’ouvrir le navigateur dans une autre fenêtre en cliquant sur le menu Fichier, en pointant sur Nouveau et en cliquant sur Fenêtre.

Remarque : lorsque les utilisateurs cliquent sur la commande Ouvrir dans une nouvelle fenêtre, le lien n’est pas ouvert dans une nouvelle fenêtre et ils sont informés que la commande n’est pas disponible.

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions
Value name
NoOpeninNewWnd
StateValue written
Enablednot defined in the ADMX
Disablednot defined in the ADMX

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

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.

Enable

# Enable: inetres/NoOpeninNewWnd
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Restrictions'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoOpeninNewWnd' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: inetres/NoOpeninNewWnd
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Restrictions'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoOpeninNewWnd' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": inetres/NoOpeninNewWnd
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Restrictions'
Remove-ItemProperty -Path $k -Name 'NoOpeninNewWnd' -ErrorAction SilentlyContinue

Availability