Ouvrir dans l'explorateur

Automatically grant permission to these sites to connect to HID devices with the given vendor and product IDs.

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 › Paramètres du contenu Configuration utilisateur › Stratégies › Modèles d'administration › Google › Google Chrome › Paramètres du contenu EN : Computer Configuration › Policies › Administrative Templates › Google › Google Chrome › Content settingsEN : User Configuration › Policies › Administrative Templates › Google › Google Chrome › Content settings
Pris en charge sur
Microsoft Windows 7 or later
Fichier ADMX
chrome.admx
Nom interne
chrome/WebHidAllowDevicesForUrls

Explication

Setting the policy lets you list the URLs that specify which sites are automatically granted permission to access a HID device with the given vendor and product IDs. Each item in the list requires both devices and urls fields for the item to be valid, otherwise the item is ignored. Each item in the devices field must have a vendor_id and may have a product_id field. Omitting the product_id field will create a policy matching any device with the specified vendor ID. An item which has a product_id field without a vendor_id field is invalid and is ignored.

Leaving the policy unset means DefaultWebHidGuardSetting applies, if it's set. If not, the user's personal setting applies.

URLs in this policy shouldn't conflict with those configured through WebHidBlockedForUrls. If they do, this policy takes precedence over WebHidBlockedForUrls.
See https://chromeenterprise.google/policies/?policy=WebHidAllowDevicesForUrls for more information about schema and formatting.

Example value:

[
{
"devices": [
{
"product_id": 5678,
"vendor_id": 1234
}
],
"urls": [
"https://google.com",
"https://chromium.org"
]
}
]

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/WebHidAllowDevicesForUrls
$k = 'HKLM:\Software\Policies\Google\Chrome'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Automatically grant permission to these sites to connect to HID devices with the given vendor and product IDs.
Set-ItemProperty -Path $k -Name 'WebHidAllowDevicesForUrls' -Value '<valeur>' -Type String

Désactiver

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

Revenir à « Non configuré »

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

Utilisateur (HKCU)

Activer

Désactiver

Revenir à « Non configuré »

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Automatically grant permission to these sites to connect to HID devices with the given vendor and product IDs.WebHidAllowDevicesForUrlsZone de textetextWebHidAllowDevicesForUrlsREG_SZ
Longueur max : 1000000

Application

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

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