Automatically grant sites permission to connect to USB serial devices: registry value SerialAllowUsbDevicesForUrlsUserHKCU\Software\Policies\Microsoft\Edge

Policy ID
SerialAllowUsbDevicesForUrls
Scope
Computer Configuration, User Configuration
Supported on
Microsoft Edge version 97, Windows 7 or later
Source
Microsoft Edge Policy Templates (version 155.0.4283.45)
Category
Microsoft Edge › Content settings

Registry

SerialAllowUsbDevicesForUrls

REG_SZUserComputer
Enabled value
Depends on the option value
Element
Automatically grant sites permission to connect to USB serial devices
Value type
REG_SZ
Maximum length
1000000
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"SerialAllowUsbDevicesForUrls"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKCU\Software\Policies\Microsoft\Edge" /v "SerialAllowUsbDevicesForUrls" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'SerialAllowUsbDevicesForUrls' -PropertyType String -Value '<enter value>' -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"SerialAllowUsbDevicesForUrls"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKLM\Software\Policies\Microsoft\Edge" /v "SerialAllowUsbDevicesForUrls" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'SerialAllowUsbDevicesForUrls' -PropertyType String -Value '<enter value>' -Force | Out-Null