Control use of the Web Serial API: valor del Registro DefaultSerialGuardSettingUsuarioHKCU\Software\Policies\Mozilla\Firefox
Sin descripción oficial en español (se muestra el original en inglés)
- Id. de directiva
- DefaultSerialGuardSetting
- Ámbito
- Configuración del equipo, configuración de usuario
- Compatible con
- Firefox 151 or later
- Origen
- Mozilla Firefox Policy Templates (versión 8.3)
- Categoría
- Mozilla › Firefox
Registro
DefaultSerialGuardSetting
REG_DWORDUsuarioEquipo…\Software\Policies\Mozilla\FirefoxHKCU\Software\Policies\Mozilla\Firefox Clave actual
HKLM\Software\Policies\Mozilla\Firefox
HKLM\Software\Policies\Mozilla\Firefox
- Valor al habilitar
- Depende del valor de la opción
- Elemento
- -
| Elemento de lista | Valor almacenado |
|---|---|
| Do not allow any site to request access to serial ports via the Web Serial API | 2 |
| Allow sites to ask the user to grant access to a serial port | 3 |
Aplicar con .reg · CMD · PowerShell
UsuarioConfiguración por cuenta
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox] ; Opciones (usar solo una) ; Do not allow any site to request access to serial ports via the Web Serial API "DefaultSerialGuardSetting"=dword:00000002 ; Allow sites to ask the user to grant access to a serial port "DefaultSerialGuardSetting"=dword:00000003
CMD
:: Opciones (usar solo una) :: Do not allow any site to request access to serial ports via the Web Serial API reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "DefaultSerialGuardSetting" /t REG_DWORD /d 2 /f :: Allow sites to ask the user to grant access to a serial port reg add "HKCU\Software\Policies\Mozilla\Firefox" /v "DefaultSerialGuardSetting" /t REG_DWORD /d 3 /f
PowerShell
# Común: crear la clave New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Force | Out-Null # Opciones (usar solo una) # Do not allow any site to request access to serial ports via the Web Serial API New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'DefaultSerialGuardSetting' -PropertyType DWord -Value 2 -Force | Out-Null # Allow sites to ask the user to grant access to a serial port New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Name 'DefaultSerialGuardSetting' -PropertyType DWord -Value 3 -Force | Out-Null
EquipoConfiguración global del equipo
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Mozilla\Firefox] ; Opciones (usar solo una) ; Do not allow any site to request access to serial ports via the Web Serial API "DefaultSerialGuardSetting"=dword:00000002 ; Allow sites to ask the user to grant access to a serial port "DefaultSerialGuardSetting"=dword:00000003
CMD
:: Opciones (usar solo una) :: Do not allow any site to request access to serial ports via the Web Serial API reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "DefaultSerialGuardSetting" /t REG_DWORD /d 2 /f :: Allow sites to ask the user to grant access to a serial port reg add "HKLM\Software\Policies\Mozilla\Firefox" /v "DefaultSerialGuardSetting" /t REG_DWORD /d 3 /f
PowerShell
# Común: crear la clave New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Force | Out-Null # Opciones (usar solo una) # Do not allow any site to request access to serial ports via the Web Serial API New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'DefaultSerialGuardSetting' -PropertyType DWord -Value 2 -Force | Out-Null # Allow sites to ask the user to grant access to a serial port New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Name 'DefaultSerialGuardSetting' -PropertyType DWord -Value 3 -Force | Out-Null