メジャー バージョン 99 での User-Agent 文字列の固定を有効または無効にする (現在不使用) のレジストリ値 ForceMajorVersionToMinorPositionInUserAgentユーザーHKCU\Software\Policies\Microsoft\Edge
- ポリシー ID
- ForceMajorVersionToMinorPositionInUserAgent
- 適用対象
- コンピューターの構成、ユーザーの構成
- サポートされるバージョン
- Microsoft Edge バージョン 99-117、Windows 7 以降
- 出典
- Microsoft Edge Policy Templates (バージョン 155.0.4283.45)
- カテゴリ
- Microsoft Edge
レジストリ
ForceMajorVersionToMinorPositionInUserAgent
REG_DWORDユーザーコンピューター…\Software\Policies\Microsoft\EdgeHKCU\Software\Policies\Microsoft\Edge 現在のキー
HKLM\Software\Policies\Microsoft\Edge
HKLM\Software\Policies\Microsoft\Edge
- 有効時の値
- オプションの値に依存
- 要素
- メジャー バージョン 99 での User-Agent 文字列の固定を有効または無効にする
| 項目 | 保存される値 |
|---|---|
| User-Agent文字列バージョンのブラウザー設定を既定で使用します。 | 0 |
| User-Agent 文字列はメジャー バージョンを固定しません。 | 1 |
| User-Agent 文字列はメジャー バージョンを 99 として固定し、ブラウザーのメジャー バージョンをマイナー位置に含めます。 | 2 |
.reg · CMD · PowerShell で適用する
ユーザーアカウントごとの設定
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge] ; 選択項目 (1 つだけ使用) ; User-Agent文字列バージョンのブラウザー設定を既定で使用します。 "ForceMajorVersionToMinorPositionInUserAgent"=dword:00000000 ; User-Agent 文字列はメジャー バージョンを固定しません。 "ForceMajorVersionToMinorPositionInUserAgent"=dword:00000001 ; User-Agent 文字列はメジャー バージョンを 99 として固定し、ブラウザーのメジャー バージョンをマイナー位置に含めます。 "ForceMajorVersionToMinorPositionInUserAgent"=dword:00000002
CMD
:: 選択項目 (1 つだけ使用) :: User-Agent文字列バージョンのブラウザー設定を既定で使用します。 reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 0 /f :: User-Agent 文字列はメジャー バージョンを固定しません。 reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 1 /f :: User-Agent 文字列はメジャー バージョンを 99 として固定し、ブラウザーのメジャー バージョンをマイナー位置に含めます。 reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 2 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null # 選択項目 (1 つだけ使用) # User-Agent文字列バージョンのブラウザー設定を既定で使用します。 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 0 -Force | Out-Null # User-Agent 文字列はメジャー バージョンを固定しません。 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 1 -Force | Out-Null # User-Agent 文字列はメジャー バージョンを 99 として固定し、ブラウザーのメジャー バージョンをマイナー位置に含めます。 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 2 -Force | Out-Null
コンピューターコンピューター全体の設定
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge] ; 選択項目 (1 つだけ使用) ; User-Agent文字列バージョンのブラウザー設定を既定で使用します。 "ForceMajorVersionToMinorPositionInUserAgent"=dword:00000000 ; User-Agent 文字列はメジャー バージョンを固定しません。 "ForceMajorVersionToMinorPositionInUserAgent"=dword:00000001 ; User-Agent 文字列はメジャー バージョンを 99 として固定し、ブラウザーのメジャー バージョンをマイナー位置に含めます。 "ForceMajorVersionToMinorPositionInUserAgent"=dword:00000002
CMD
:: 選択項目 (1 つだけ使用) :: User-Agent文字列バージョンのブラウザー設定を既定で使用します。 reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 0 /f :: User-Agent 文字列はメジャー バージョンを固定しません。 reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 1 /f :: User-Agent 文字列はメジャー バージョンを 99 として固定し、ブラウザーのメジャー バージョンをマイナー位置に含めます。 reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 2 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null # 選択項目 (1 つだけ使用) # User-Agent文字列バージョンのブラウザー設定を既定で使用します。 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 0 -Force | Out-Null # User-Agent 文字列はメジャー バージョンを固定しません。 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 1 -Force | Out-Null # User-Agent 文字列はメジャー バージョンを 99 として固定し、ブラウザーのメジャー バージョンをマイナー位置に含めます。 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 2 -Force | Out-Null