Control use of the Web Serial API: registerwaarde DefaultSerialGuardSettingComputerHKLM\Software\Policies\Mozilla\Firefox

Geen officiële Nederlandse tekst (Engelse originele tekst)

Beleids-ID
DefaultSerialGuardSetting
Bereik
Computerconfiguratie, Gebruikersconfiguratie
Ondersteund op
Firefox 151 or later
Bron
Mozilla Firefox Policy Templates (versie 8.3)
Categorie
Mozilla › Firefox

Register

DefaultSerialGuardSetting

REG_DWORDComputerGebruiker
…\Software\Policies\Mozilla\FirefoxHKLM\Software\Policies\Mozilla\Firefox Huidige sleutel
HKCU\Software\Policies\Mozilla\Firefox
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
-
Opties
ItemOpgeslagen waarde
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
Toepassen met .reg · CMD · PowerShell
ComputerInstelling voor de hele computer
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Mozilla\Firefox]

; Opties (gebruik er maar één)
; 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
:: Opties (gebruik er maar één)

:: 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
# Algemeen: sleutel maken
New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Force | Out-Null

# Opties (gebruik er maar één)
# 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
GebruikerInstelling per account
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox]

; Opties (gebruik er maar één)
; 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
:: Opties (gebruik er maar één)

:: 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
# Algemeen: sleutel maken
New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Force | Out-Null

# Opties (gebruik er maar één)
# 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