Do not preserve zone information in file attachments
Ne pas conserver les informations de zone dans les pièces jointes
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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