Control use of the Web Serial API のレジストリ値 DefaultSerialGuardSettingユーザーHKCU\Software\Policies\Mozilla\Firefox
日本語の公式説明なし (英語の原文のまま)
- ポリシー ID
- DefaultSerialGuardSetting
- 適用対象
- コンピューターの構成、ユーザーの構成
- サポートされるバージョン
- Firefox 151 or later
- 出典
- Mozilla Firefox Policy Templates (バージョン 8.3)
- カテゴリ
- Mozilla › Firefox
レジストリ
DefaultSerialGuardSetting
REG_DWORDユーザーコンピューター…\Software\Policies\Mozilla\FirefoxHKCU\Software\Policies\Mozilla\Firefox 現在のキー
HKLM\Software\Policies\Mozilla\Firefox
HKLM\Software\Policies\Mozilla\Firefox
- 有効時の値
- オプションの値に依存
- 要素
- -
| 項目 | 保存される値 |
|---|---|
| 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 で適用する
ユーザーアカウントごとの設定
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox] ; 選択項目 (1 つだけ使用) ; 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
:: 選択項目 (1 つだけ使用) :: 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
# 共通: キーを作成 New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox' -Force | Out-Null # 選択項目 (1 つだけ使用) # 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
コンピューターコンピューター全体の設定
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Mozilla\Firefox] ; 選択項目 (1 つだけ使用) ; 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
:: 選択項目 (1 つだけ使用) :: 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
# 共通: キーを作成 New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox' -Force | Out-Null # 選択項目 (1 つだけ使用) # 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