Het blokkeren van de tekenreeks user-agent in primaire versie 99 in- of uitschakelen (verouderd): registerwaarde ForceMajorVersionToMinorPositionInUserAgentGebruikerHKCU\Software\Policies\Microsoft\Edge

Beleids-ID
ForceMajorVersionToMinorPositionInUserAgent
Bereik
Computerconfiguratie, Gebruikersconfiguratie
Ondersteund op
Microsoft Edge versie 99-117, Windows 7 of hoger
Bron
Microsoft Edge Policy Templates (versie 155.0.4283.45)
Categorie
Microsoft Edge

Register

ForceMajorVersionToMinorPositionInUserAgent

REG_DWORDGebruikerComputer
…\Software\Policies\Microsoft\EdgeHKCU\Software\Policies\Microsoft\Edge Huidige sleutel
HKLM\Software\Policies\Microsoft\Edge
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Het blokkeren van de tekenreeks user-agent in primaire versie 99 in- of uitschakelen
Opties
ItemOpgeslagen waarde
Standaard naar browserinstellingen voor User-Agent tekenreeksversie.0
De primaire versie wordt niet geblokkeerd door de tekenreeks User-Agent.1
De tekenreeks User-Agent blokkeert de primaire versie als 99 en bevat de primaire versie van de browser op de secundaire positie.2
Toepassen met .reg · CMD · PowerShell
GebruikerInstelling per account
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge]

; Opties (gebruik er maar één)
; Standaard naar browserinstellingen voor User-Agent tekenreeksversie.
"ForceMajorVersionToMinorPositionInUserAgent"=dword:00000000
; De primaire versie wordt niet geblokkeerd door de tekenreeks User-Agent.
"ForceMajorVersionToMinorPositionInUserAgent"=dword:00000001
; De tekenreeks User-Agent blokkeert de primaire versie als 99 en bevat de primaire versie van de browser op de secundaire positie.
"ForceMajorVersionToMinorPositionInUserAgent"=dword:00000002
CMD
:: Opties (gebruik er maar één)

:: Standaard naar browserinstellingen voor User-Agent tekenreeksversie.
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 0 /f
:: De primaire versie wordt niet geblokkeerd door de tekenreeks User-Agent.
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 1 /f
:: De tekenreeks User-Agent blokkeert de primaire versie als 99 en bevat de primaire versie van de browser op de secundaire positie.
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 2 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# Opties (gebruik er maar één)
# Standaard naar browserinstellingen voor User-Agent tekenreeksversie.
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 0 -Force | Out-Null
# De primaire versie wordt niet geblokkeerd door de tekenreeks User-Agent.
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 1 -Force | Out-Null
# De tekenreeks User-Agent blokkeert de primaire versie als 99 en bevat de primaire versie van de browser op de secundaire positie.
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 2 -Force | Out-Null
ComputerInstelling voor de hele computer
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]

; Opties (gebruik er maar één)
; Standaard naar browserinstellingen voor User-Agent tekenreeksversie.
"ForceMajorVersionToMinorPositionInUserAgent"=dword:00000000
; De primaire versie wordt niet geblokkeerd door de tekenreeks User-Agent.
"ForceMajorVersionToMinorPositionInUserAgent"=dword:00000001
; De tekenreeks User-Agent blokkeert de primaire versie als 99 en bevat de primaire versie van de browser op de secundaire positie.
"ForceMajorVersionToMinorPositionInUserAgent"=dword:00000002
CMD
:: Opties (gebruik er maar één)

:: Standaard naar browserinstellingen voor User-Agent tekenreeksversie.
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 0 /f
:: De primaire versie wordt niet geblokkeerd door de tekenreeks User-Agent.
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 1 /f
:: De tekenreeks User-Agent blokkeert de primaire versie als 99 en bevat de primaire versie van de browser op de secundaire positie.
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ForceMajorVersionToMinorPositionInUserAgent" /t REG_DWORD /d 2 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# Opties (gebruik er maar één)
# Standaard naar browserinstellingen voor User-Agent tekenreeksversie.
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 0 -Force | Out-Null
# De primaire versie wordt niet geblokkeerd door de tekenreeks User-Agent.
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 1 -Force | Out-Null
# De tekenreeks User-Agent blokkeert de primaire versie als 99 en bevat de primaire versie van de browser op de secundaire positie.
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'ForceMajorVersionToMinorPositionInUserAgent' -PropertyType DWord -Value 2 -Force | Out-Null