Control use of the Web Serial API: kayıt defteri değeri DefaultSerialGuardSettingBilgisayarHKLM\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_DWORDBilgisayarKullanıcı…\Software\Policies\Mozilla\FirefoxHKLM\Software\Policies\Mozilla\Firefox Geçerli anahtar
HKCU\Software\Policies\Mozilla\Firefox
HKCU\Software\Policies\Mozilla\Firefox
- Etkin değeri
- Seçenek değerine bağlıdır
- Öğe
- -
| Madde | Saklanan değer |
|---|---|
| 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 |
.reg · CMD · PowerShell ile uygula
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
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