Control use of the Serial API
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
Explication
Set whether websites can access serial ports. You can completely block access or ask the user each time a website wants to get access to a serial port.
Setting the policy to 3 lets websites ask for access to serial ports. Setting the policy to 2 denies access to serial ports.
You can override this policy for specific URL patterns by using the 'SerialAskForUrls' (Allow the Serial API on specific sites) and 'SerialBlockedForUrls' (Block the Serial API on specific sites) policies.
If you don't configure this policy, by default, websites can ask users whether they can access a serial port, and users can change this setting.
Policy options mapping:
* BlockSerial (2) = Do not allow any site to request access to serial ports via the Serial API
* AskSerial (3) = Allow sites to ask for user permission to access a serial port
Use the preceding information when configuring this policy.
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\EdgeHKEY_CURRENT_USER\Software\Policies\Microsoft\Edge- 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 : msedge/DefaultSerialGuardSetting
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Control use of the Serial API
# Options possibles :
# Do not allow any site to request access to serial ports via the Serial API = 2
# Allow sites to ask for user permission to access a serial port = 3
Set-ItemProperty -Path $k -Name 'DefaultSerialGuardSetting' -Value 2 -Type DWordDésactiver
# Désactiver : msedge/DefaultSerialGuardSetting
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)Revenir à « Non configuré »
# Revenir à « Non configuré » : msedge/DefaultSerialGuardSetting
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
Remove-ItemProperty -Path $k -Name 'DefaultSerialGuardSetting' -ErrorAction SilentlyContinueUtilisateur (HKCU)
Activer
Désactiver
Revenir à « Non configuré »
Options (1)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Control use of the Serial APIDefaultSerialGuardSetting | Liste déroulanteenum | DefaultSerialGuardSetting | REG_DWORD |
|
Application
Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — modèles de novembre 2026
Modèles officiels téléchargés le 12 novembre 2026.