Allow listed sites connect to specific HID devices: registry value WebHidAllowDevicesForUrlsUserHKCU\Software\Policies\Microsoft\Edge

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

Registry

WebHidAllowDevicesForUrls

REG_SZUserComputer
Enabled value
Depends on the option value
Element
Allow listed sites connect to specific HID 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
"WebHidAllowDevicesForUrls"="<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 "WebHidAllowDevicesForUrls" /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 'WebHidAllowDevicesForUrls' -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
"WebHidAllowDevicesForUrls"="<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 "WebHidAllowDevicesForUrls" /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 'WebHidAllowDevicesForUrls' -PropertyType String -Value '<enter value>' -Force | Out-Null