Bloquer les cookies tronqués (obsolète) : valeur de Registre BlockTruncatedCookies (WebView2)UtilisateurHKCU\Software\Policies\Microsoft\Edge\WebView2
- ID de stratégie
- BlockTruncatedCookies
- Étendue
- Configuration ordinateur, configuration utilisateur
- Pris en charge sur
- Microsoft Edge version 123-131, Windows 7 ou ultérieur
- Source
- Microsoft Edge Policy Templates (version 155.0.4283.45)
- Catégorie
- Microsoft Edge WebView2 › Paramètres réseau
Registre
BlockTruncatedCookies
REG_DWORDUtilisateurOrdinateur…\Software\Policies\Microsoft\Edge\WebView2HKCU\Software\Policies\Microsoft\Edge\WebView2 Clé actuelle
HKLM\Software\Policies\Microsoft\Edge\WebView2
HKLM\Software\Policies\Microsoft\Edge\WebView2
- Valeur si activée
- 1
- Valeur si désactivée
- 0
Appliquer avec .reg · CMD · PowerShell
UtilisateurParamètre par compte
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge\WebView2] ; Options (en utiliser une seule) ; Activé "BlockTruncatedCookies"=dword:00000001 ; Désactivé "BlockTruncatedCookies"=dword:00000000
CMD
:: Options (en utiliser une seule) :: Activé reg add "HKCU\Software\Policies\Microsoft\Edge\WebView2" /v "BlockTruncatedCookies" /t REG_DWORD /d 1 /f :: Désactivé reg add "HKCU\Software\Policies\Microsoft\Edge\WebView2" /v "BlockTruncatedCookies" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge\WebView2' -Force | Out-Null # Options (en utiliser une seule) # Activé New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge\WebView2' -Name 'BlockTruncatedCookies' -PropertyType DWord -Value 1 -Force | Out-Null # Désactivé New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge\WebView2' -Name 'BlockTruncatedCookies' -PropertyType DWord -Value 0 -Force | Out-Null
OrdinateurParamètre valable pour tout l’ordinateur
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge\WebView2] ; Options (en utiliser une seule) ; Activé "BlockTruncatedCookies"=dword:00000001 ; Désactivé "BlockTruncatedCookies"=dword:00000000
CMD
:: Options (en utiliser une seule) :: Activé reg add "HKLM\Software\Policies\Microsoft\Edge\WebView2" /v "BlockTruncatedCookies" /t REG_DWORD /d 1 /f :: Désactivé reg add "HKLM\Software\Policies\Microsoft\Edge\WebView2" /v "BlockTruncatedCookies" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge\WebView2' -Force | Out-Null # Options (en utiliser une seule) # Activé New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge\WebView2' -Name 'BlockTruncatedCookies' -PropertyType DWord -Value 1 -Force | Out-Null # Désactivé New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge\WebView2' -Name 'BlockTruncatedCookies' -PropertyType DWord -Value 0 -Force | Out-Null