Control use of the Serial API
Jump to overview

Policy overview

Key metadata and intent for this policy.

Category
Microsoft Edge
Supported on
Microsoft Edge version 86, Windows 7 or later

Supported OS tags: Windows7

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.

Internal name
DefaultSerialGuardSetting
Policy ID
787bd1a7e79e
Elements
1

Registry values

How enabled and disabled states update the registry.

No explicit registry values are set for enabled or disabled states.

Policy elements

Inputs and configuration options exposed by this policy.

ScopeElementTypeRegistry mappingConstraints & behaviorCopy
Control use of the Serial API
ID DefaultSerialGuardSetting
enum
Path
Software\Policies\Microsoft\Edge
Value name
DefaultSerialGuardSetting
Type
REG_DWORD
Options: 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)
Control use of the Serial API
Both · Type enum
Registry mapping
Path
Software\Policies\Microsoft\Edge
Value name
DefaultSerialGuardSetting
Type
REG_DWORD
Details
Options: 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)