File menu: Disable New menu option
Menu Fichier : désactiver l’option de menu Nouveau
Explanation
Prevents users from opening a new browser window from the File menu.
If this policy is enabled, users cannot open a new browser window by clicking the File menu, pointing to the New menu, and then clicking Window. The user interface is not changed, but a new window will not be opened, and users will be informed that the command is not available.
If you disable this policy or do not configure it, users can open a new browser window from the File menu.
Caution: This policy does not prevent users from opening a new browser window by right-clicking, and then clicking the Open in New Window command. To prevent users from using the shortcut menu to open new browser windows, you should also set the "Disable Open in New Window menu option" policy, which disables this command on the shortcut menu, or the "Turn off Shortcut Menu" policy, which disables the entire shortcut menu.
Note: the user will still be able to open New Tabs.
Empêche les utilisateurs d’ouvrir une nouvelle fenêtre de navigation à partir du menu Fichier.
Si vous activez ce paramètre de stratégie, les utilisateurs ne peuvent pas ouvrir une nouvelle fenêtre de navigation en ouvrant le menu Fichier, en pointant vers Nouveau et en cliquant sur Fenêtre. L’interface utilisateur n’est pas modifiée, mais une nouvelle fenêtre ne s’ouvre pas et les utilisateurs sont informés que la commande n’est pas disponible.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les utilisateurs peuvent ouvrir une nouvelle fenêtre de navigation à partir du menu Fichier.
Attention : ce paramètre de stratégie n’empêche pas les utilisateurs d’ouvrir une nouvelle fenêtre en cliquant avec le bouton droit de la souris, puis en cliquant sur la commande Ouvrir dans une nouvelle fenêtre. Pour empêcher les utilisateurs d’utiliser le menu contextuel pour ouvrir de nouvelles fenêtres de navigation, vous devez définir également la stratégie « Désactiver la commande Ouvrir dans une nouvelle fenêtre », qui désactive cette commande du menu contextuel, ou la stratégie « Désactiver le menu contextuel », qui désactive le menu contextuel entier.
Remarque : l’utilisateur est toujours en mesure d’ouvrir de nouveaux onglets.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions- Value name
NoFileNew
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not 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/File_NoFileNew
$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 'NoFileNew' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: inetres/File_NoFileNew
$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 'NoFileNew' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": inetres/File_NoFileNew
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Restrictions'
Remove-ItemProperty -Path $k -Name 'NoFileNew' -ErrorAction SilentlyContinue