Allow Developer Tools
Autoriser les outils de développement
Explanation
This policy setting lets you decide whether F12 Developer Tools are available on Microsoft Edge.
If you enable or don't configure this setting, the F12 Developer Tools are available in Microsoft Edge.
If you disable this setting, the F12 Developer Tools aren't available in Microsoft Edge.
Ce paramètre de stratégie vous permet de décider si les outils de développement F12 sont disponibles sur Microsoft Edge.
Si vous activez ce paramètre ou si vous ne le configurez pas, les outils de développement F12 sont disponibles sur Microsoft Edge.
Si vous désactivez ce paramètre, les outils de développement F12 ne sont pas disponibles sur Microsoft Edge.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\MicrosoftEdge\F12HKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\F12- Value name
AllowDeveloperTools
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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/AllowDeveloperTools
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\F12'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowDeveloperTools' -Value 1 -Type DWordDisable
# Disable: MicrosoftEdge/AllowDeveloperTools
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\F12'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowDeveloperTools' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": MicrosoftEdge/AllowDeveloperTools
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\F12'
Remove-ItemProperty -Path $k -Name 'AllowDeveloperTools' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"