Ouvrir dans l'explorateur

Control where Chrome DevTools can be used

Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.

Type
Ordinateur et utilisateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Google › Google Chrome Configuration utilisateur › Stratégies › Modèles d'administration › Google › Google Chrome EN : Computer Configuration › Policies › Administrative Templates › Google › Google ChromeEN : User Configuration › Policies › Administrative Templates › Google › Google Chrome
Pris en charge sur
Microsoft Windows 7 or later
Fichier ADMX
chrome.admx
Nom interne
chrome/DeveloperToolsAvailability

Explication

Setting the policy to 0 (the default) means you can access Chrome DevTools and the JavaScript console, but not in the context of extensions installed by enterprise policy or, since version 114 and if this is a managed user, extensions built into the browser. Setting the policy to 1 means you can access Chrome DevTools and the JavaScript console in all contexts, including that of extensions installed by enterprise policy. Setting the policy to 2 means you can't access Chrome DevTools, and you can't inspect website elements.

This setting also turns off keyboard shortcuts and menu or context menu entries to open Chrome DevTools or the JavaScript console.

As of Google Chrome version 99, this setting also controls entry points for the 'View page source' feature. If you set this policy to 'DeveloperToolsDisallowed' (value 2), users cannot access source viewing via keyboard shortcut or the context menu. To fully block source viewing, you must also add 'view-source:*' to the URLBlocklist policy.

As of Google Chrome version 119, this setting also controls whether developer mode for Isolated Web Apps can be activated and used.

As of Google Chrome version 128, this setting will not control developer mode on extensions page if ExtensionDeveloperModeSettings policy is set.

This policy affects Chrome DevTools, direct Chrome DevTools Protocol (CDP) access (for instance, when launched with --remote-debugging-port or --remote-debugging-pipe), and Chrome DevTools Protocol (CDP) access via chrome.debugger APIs. Both this policy and the RemoteDebuggingAllowed policy apply: RemoteDebuggingAllowed controls whether remote debugging can start, while this policy restricts whether individual targets can be inspected even when remote debugging is running.

The DeveloperToolsAvailabilityAllowlist and DeveloperToolsAvailabilityBlocklist policies take precedence over this policy. The availability of Chrome DevTools is determined in the following order of precedence:

1. If a URL matches a pattern in the DeveloperToolsAvailabilityAllowlist policy, Chrome DevTools are allowed.
2. If the DeveloperToolsAvailabilityAllowlist is set and the DeveloperToolsAvailabilityBlocklist is not, any URL not on the allowlist is blocked.
3. If a URL matches a pattern in the DeveloperToolsAvailabilityBlocklist policy, Chrome DevTools are blocked.
4. If neither policy is set, or if a URL matches neither list, this policy (DeveloperToolsAvailability) is used as the fallback mechanism.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome
HKEY_CURRENT_USER\Software\Policies\Google\Chrome
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Ordinateur (HKLM)

Activer

# Activer : chrome/DeveloperToolsAvailability
$k = 'HKLM:\Software\Policies\Google\Chrome'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Control where Chrome DevTools can be used
# Options possibles :
#   Disallow usage of Chrome DevTools on apps and extensions installed by enterprise policy or, since version 114 and if this is a managed user, extensions built into the browser. Allow usage of Chrome DevTools in other contexts = 0
#   Allow usage of Chrome DevTools = 1
#   Disallow usage of Chrome DevTools = 2
Set-ItemProperty -Path $k -Name 'DeveloperToolsAvailability' -Value 0 -Type DWord

Désactiver

# Désactiver : chrome/DeveloperToolsAvailability
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : chrome/DeveloperToolsAvailability
$k = 'HKLM:\Software\Policies\Google\Chrome'
Remove-ItemProperty -Path $k -Name 'DeveloperToolsAvailability' -ErrorAction SilentlyContinue

Utilisateur (HKCU)

Activer

Désactiver

Revenir à « Non configuré »

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Control where Chrome DevTools can be usedDeveloperToolsAvailabilityListe déroulanteenumDeveloperToolsAvailabilityREG_DWORD
LibelléValeur
Disallow usage of Chrome DevTools on apps and extensions installed by enterprise policy or, since version 114 and if this is a managed user, extensions built into the browser. Allow usage of Chrome DevTools in other contextsREG_DWORD = 0
Allow usage of Chrome DevToolsREG_DWORD = 1
Disallow usage of Chrome DevToolsREG_DWORD = 2

Application

Google Chrome (Google) — modèles de novembre 2026

Modèles officiels téléchargés le 12 novembre 2026.