Open in the explorer

Configure cookies

Configurer les cookies

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Edge User Configuration › Policies › Administrative Templates › Windows Components › Microsoft Edge FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Microsoft EdgeFR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Microsoft Edge
Supported on
Microsoft Edge on Windows 10 or later FR: Microsoft Edge sur Windows 10 ou version ultérieure
ADMX file
MicrosoftEdge.admx
Internal name
MicrosoftEdge/Cookies

Explanation

This setting lets you configure how to work with cookies.

If you enable this setting, you must also decide whether to:
Allow all cookies (default): Allows all cookies from all websites.
Block all cookies: Blocks all cookies from all websites.
Block only 3rd-party cookies: Blocks only cookies from 3rd-party websites.

If you disable or don't configure this setting, all cookies are allowed from all sites.

French text from Windows 11 26H2

Ce paramètre vous permet de configurer comment utiliser les cookies.

Si vous activez ce paramètre, vous devez également décider de :
Autoriser tous les cookies (par défaut). Autorise tous les cookies de tous les sites web.
Bloquer tous les cookies. Bloque tous les cookies de tous les sites web.
Bloquer tous les cookies tiers. Bloque le téléchargement des cookies tiers.

Si vous désactivez ce paramètre ou si vous ne le configurez pas, tous les cookies de tous les sites sont autorisés.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\MicrosoftEdge\Main
HKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\Main
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Computer (HKLM)

Enable

# Enable: MicrosoftEdge/Cookies
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Configure Cookies
# Possible options:
#   Block all cookies = 0
#   Block only 3rd-party cookies = 1
#   Allow all cookies (default) = 2
Set-ItemProperty -Path $k -Name 'Cookies' -Value 2 -Type DWord

Disable

# Disable: MicrosoftEdge/Cookies
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": MicrosoftEdge/Cookies
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main'
Remove-ItemProperty -Path $k -Name 'Cookies' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Configure CookiesConfigurer les cookiesCookiesListBoxDrop-down listenumCookiesREG_DWORD
Required · Default choice (UI): #2
LabelValue
Block all cookiesREG_DWORD = 0
Block only 3rd-party cookiesREG_DWORD = 1
Allow all cookies (default)REG_DWORD = 2

Availability