Configure cookies
Configurer les 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.
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\MainHKEY_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 DWordDisable
# 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 SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Configure CookiesConfigurer les cookiesCookiesListBox | Drop-down listenum | Cookies | REG_DWORD | Required · Default choice (UI): #2
|