Enable or disable freezing the User-Agent string at major version 99 (obsolete): registry value ForceMajorVersionToMinorPositionInUserAgentUserHKCU\Software\Policies\Microsoft\Edge

Policy ID
ForceMajorVersionToMinorPositionInUserAgent
Scope
Computer Configuration, User Configuration
Supported on
Microsoft Edge version 99-117, Windows 7 or later
Source
Microsoft Edge Policy Templates (version 155.0.4283.45)
Category
Microsoft Edge

Registry

ForceMajorVersionToMinorPositionInUserAgent

REG_DWORDUserComputer
Enabled value
Depends on the option value
Element
Enable or disable freezing the User-Agent string at major version 99
Options
ItemStored value
Default to browser settings for User-Agent string version.0
The User-Agent string won't freeze the major version.1
The User-Agent string will freeze the major version as 99 and include the browser's major version in the minor position.2
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge]

; Options (use only one)
; Default to browser settings for User-Agent string version.
"ForceMajorVersionToMinorPositionInUserAgent"=dword:00000000
; The User-Agent string won't freeze the major version.
"ForceMajorVersionToMinorPositionInUserAgent"=dword:00000001
; The User-Agent string will freeze the major version as 99 and include the browser's major version in the minor position.
"ForceMajorVersionToMinorPositionInUserAgent"=dword:00000002
CMD
:: Options (use only one)

:: Default to browser settings for User-Agent string version.
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 0 /f
:: The User-Agent string won't freeze the major version.
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 1 /f
:: The User-Agent string will freeze the major version as 99 and include the browser's major version in the minor position.
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# Options (use only one)
# Default to browser settings for User-Agent string version.
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 0 -Force | Out-Null
# The User-Agent string won't freeze the major version.
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 1 -Force | Out-Null
# The User-Agent string will freeze the major version as 99 and include the browser's major version in the minor position.
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 2 -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]

; Options (use only one)
; Default to browser settings for User-Agent string version.
"ForceMajorVersionToMinorPositionInUserAgent"=dword:00000000
; The User-Agent string won't freeze the major version.
"ForceMajorVersionToMinorPositionInUserAgent"=dword:00000001
; The User-Agent string will freeze the major version as 99 and include the browser's major version in the minor position.
"ForceMajorVersionToMinorPositionInUserAgent"=dword:00000002
CMD
:: Options (use only one)

:: Default to browser settings for User-Agent string version.
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 0 /f
:: The User-Agent string won't freeze the major version.
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 1 /f
:: The User-Agent string will freeze the major version as 99 and include the browser's major version in the minor position.
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# Options (use only one)
# Default to browser settings for User-Agent string version.
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 0 -Force | Out-Null
# The User-Agent string won't freeze the major version.
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 1 -Force | Out-Null
# The User-Agent string will freeze the major version as 99 and include the browser's major version in the minor position.
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 2 -Force | Out-Null