en-US edge computer user

Automatically grant sites permission to connect to USB serial devices

Verified with Microsoft Edge 152.0.4191.53 — updated on July 12, 2026

Microsoft Edge 152.0.4191.53

Supported on: Microsoft Edge version 97, Windows 7 or later

Path in the GPO console

Computer Configuration\Administrative Templates\Microsoft Edge\Content settings

Description

Setting the policy lets you list sites that are automatically granted permission to access USB serial devices with vendor and product IDs that match the vendor_id and product_id fields. Optionally you can omit the product_id field. This enables site access to the vendor's devices. When you provide a product ID, then you give the site access to a specific device from the vendor but not all devices. The URLs must be valid, or the policy is ignored. Only the origin (scheme, host, and port) of the URL is considered. This policy overrides 'DefaultSerialGuardSetting' (Control use of the Serial API), 'SerialAskForUrls' (Allow the Serial API on specific sites), 'SerialBlockedForUrls' (Block the Serial API on specific sites), and the user's preferences. This policy only affects access to USB devices through the Web Serial API. To grant access to USB devices through the WebUSB API, see the 'WebUsbAllowDevicesForUrls' (Grant access to specific sites to connect to specific USB devices) policy. Example value: [ { "devices": [ { "product_id": 5678, "vendor_id": 1234 } ], "urls": [ "https://specific-device.example.com" ] }, { "devices": [ { "vendor_id": 1234 } ], "urls": [ "https://all-vendor-devices.example.com" ] } ]

Registry

HKLM Software\Policies\Microsoft\Edge
HKCU Software\Policies\Microsoft\Edge

More options available

Options

Automatically grant sites permission to connect to USB serial devices
SerialAllowUsbDevicesForUrls text

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

Scope

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Automatically grant sites permission to connect to USB serial devices
; State: Enabled
; Scope: Computer (HKLM)
; Supported on: Microsoft Edge version 97, Windows 7 or later

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]
"SerialAllowUsbDevicesForUrls"=""
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Automatically grant sites permission to connect to USB serial devices
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: Microsoft Edge version 97, Windows 7 or later

$path = 'HKLM:\Software\Policies\Microsoft\Edge'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'SerialAllowUsbDevicesForUrls' -Value '' -Type String

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview