Open in the explorer

Do not preserve zone information in file attachments

Ne pas conserver les informations de zone dans les pièces jointes

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Windows Components › Attachment Manager FR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Gestionnaire de pièces jointes
Supported on
At least Windows XP Professional with SP2 FR: Au minimum Windows XP Professionnel avec SP2
ADMX file
AttachmentManager.admx
Internal name
AttachmentManager/AM_MarkZoneOnSavedAtttachments

Explanation

This policy setting allows you to manage whether Windows marks file attachments with information about their zone of origin (such as restricted, Internet, intranet, local). This requires NTFS in order to function correctly, and will fail without notice on FAT32. By not preserving the zone information, Windows cannot make proper risk assessments.

If you enable this policy setting, Windows does not mark file attachments with their zone information.

If you disable this policy setting, Windows marks file attachments with their zone information.

If you do not configure this policy setting, Windows marks file attachments with their zone information.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de spécifier si Windows marque les pièces jointes à l’aide d’informations sur leur zone d’origine (restreinte, Internet, intranet, local, par exemple). Ce paramètre exige NTFS pour fonctionner correctement et échoue sans afficher de message sur FAT32. En ne préservant pas les informations de zone, Windows ne peut pas correctement évaluer les risques.

Si vous activez ce paramètre de stratégie, Windows ne marque pas les pièces jointes avec leurs informations de zone.

Si vous désactivez ce paramètre de stratégie, Windows marque les pièces jointes avec leurs informations de zone.

Si vous ne configurez pas ce paramètre de stratégie, Windows marque les pièces jointes avec leurs informations de zone.

Registry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments
Value name
SaveZoneInformation
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 2

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.

Enable

# Enable: AttachmentManager/AM_MarkZoneOnSavedAtttachments
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SaveZoneInformation' -Value 1 -Type DWord

Disable

# Disable: AttachmentManager/AM_MarkZoneOnSavedAtttachments
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SaveZoneInformation' -Value 2 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": AttachmentManager/AM_MarkZoneOnSavedAtttachments
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments'
Remove-ItemProperty -Path $k -Name 'SaveZoneInformation' -ErrorAction SilentlyContinue

Availability