Control use of the Web Serial API: valore del Registro di sistema DefaultSerialGuardSettingComputerHKLM\Software\Policies\Mozilla\Firefox

Nessuna descrizione ufficiale in italiano (originale inglese)

ID criterio
DefaultSerialGuardSetting
Ambito
Configurazione computer, Configurazione utente
Supportato in
Firefox 151 or later
Origine
Mozilla Firefox Policy Templates (versione 8.3)
Categoria
Mozilla › Firefox

Registro

DefaultSerialGuardSetting

REG_DWORDComputerUtente
…\Software\Policies\Mozilla\FirefoxHKLM\Software\Policies\Mozilla\Firefox Chiave corrente
HKCU\Software\Policies\Mozilla\Firefox
Valore abilitato
Dipende dal valore dell'opzione
Elemento
-
Opzioni
VoceValore memorizzato
Do not allow any site to request access to serial ports via the Web Serial API2
Allow sites to ask the user to grant access to a serial port3
Applica con .reg · CMD · PowerShell
ComputerImpostazione globale del computer
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Mozilla\Firefox]

; Opzioni (usarne 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
:: Opzioni (usarne 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
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Force | Out-Null

# Opzioni (usarne 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
UtenteImpostazione per account
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox]

; Opzioni (usarne 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
:: Opzioni (usarne 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
# Comune: crea la chiave
New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Force | Out-Null

# Opzioni (usarne 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