Blocca cookie troncati (obsoleto): valore del Registro di sistema BlockTruncatedCookies (WebView2)ComputerHKLM\Software\Policies\Microsoft\Edge\WebView2

ID criterio
BlockTruncatedCookies
Ambito
Configurazione computer, Configurazione utente
Supportato in
Microsoft Edge versione 123-131, Windows 7 o versione successiva
Origine
Microsoft Edge Policy Templates (versione 155.0.4283.45)
Categoria
Microsoft Edge WebView2 › Impostazioni di rete

Registro

BlockTruncatedCookies

REG_DWORDComputerUtente
Valore abilitato
1
Valore disabilitato
0
Applica con .reg · CMD · PowerShell
ComputerImpostazione globale del computer
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge\WebView2]

; Opzioni (usarne solo una)
; Abilitato
"BlockTruncatedCookies"=dword:00000001
; Disabilitato
"BlockTruncatedCookies"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Abilitato
reg add "HKLM\Software\Policies\Microsoft\Edge\WebView2" /v "BlockTruncatedCookies" /t REG_DWORD /d 1 /f
:: Disabilitato
reg add "HKLM\Software\Policies\Microsoft\Edge\WebView2" /v "BlockTruncatedCookies" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge\WebView2' -Force | Out-Null

# Opzioni (usarne solo una)
# Abilitato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge\WebView2' -Name 'BlockTruncatedCookies' -PropertyType DWord -Value 1 -Force | Out-Null
# Disabilitato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge\WebView2' -Name 'BlockTruncatedCookies' -PropertyType DWord -Value 0 -Force | Out-Null
UtenteImpostazione per account
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge\WebView2]

; Opzioni (usarne solo una)
; Abilitato
"BlockTruncatedCookies"=dword:00000001
; Disabilitato
"BlockTruncatedCookies"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Abilitato
reg add "HKCU\Software\Policies\Microsoft\Edge\WebView2" /v "BlockTruncatedCookies" /t REG_DWORD /d 1 /f
:: Disabilitato
reg add "HKCU\Software\Policies\Microsoft\Edge\WebView2" /v "BlockTruncatedCookies" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge\WebView2' -Force | Out-Null

# Opzioni (usarne solo una)
# Abilitato
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge\WebView2' -Name 'BlockTruncatedCookies' -PropertyType DWord -Value 1 -Force | Out-Null
# Disabilitato
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge\WebView2' -Name 'BlockTruncatedCookies' -PropertyType DWord -Value 0 -Force | Out-Null