Control use of the Web Serial API: kayıt defteri değeri DefaultSerialGuardSettingKullanıcıHKCU\Software\Policies\Mozilla\Firefox

Bu dilde resmi metin yok (İngilizce özgün metin gösteriliyor)

İlke Kimliği
DefaultSerialGuardSetting
Kapsam
Bilgisayar Yapılandırması, Kullanıcı Yapılandırması
Desteklenen işletim sistemleri
Firefox 151 or later
Kaynak
Mozilla Firefox Policy Templates (sürüm 8.3)
Kategori
Mozilla › Firefox

Kayıt defteri

DefaultSerialGuardSetting

REG_DWORDKullanıcıBilgisayar
…\Software\Policies\Mozilla\FirefoxHKCU\Software\Policies\Mozilla\Firefox Geçerli anahtar
HKLM\Software\Policies\Mozilla\Firefox
Etkin değeri
Seçenek değerine bağlıdır
Öğe
-
Seçenekler
MaddeSaklanan değer
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
.reg · CMD · PowerShell ile uygula
KullanıcıHesap başına ayar
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox]

; Seçenekler (yalnızca birini kullanı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
:: Seçenekler (yalnızca birini kullanı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
# Ortak: anahtarı oluştur
New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Force | Out-Null

# Seçenekler (yalnızca birini kullanı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
BilgisayarMakine genelinde ayar
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Mozilla\Firefox]

; Seçenekler (yalnızca birini kullanı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
:: Seçenekler (yalnızca birini kullanı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
# Ortak: anahtarı oluştur
New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Force | Out-Null

# Seçenekler (yalnızca birini kullanı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