Hide mechanisms to remove zone information
Masquer les mécanismes de suppression d’informations de zone
Explanation
This policy setting allows you to manage whether users can manually remove the zone information from saved file attachments by clicking the Unblock button in the file's property sheet or by using a check box in the security warning dialog. Removing the zone information allows users to open potentially dangerous file attachments that Windows has blocked users from opening.
If you enable this policy setting, Windows hides the check box and Unblock button.
If you disable this policy setting, Windows shows the check box and Unblock button.
If you do not configure this policy setting, Windows hides the check box and Unblock button.
Ce paramètre de stratégie vous permet de spécifier si les utilisateurs peuvent supprimer manuellement les informations de zone des pièces jointes enregistrées en cliquant sur le bouton Débloquer dans la page de propriétés d’un fichier ou en utilisant une case à cocher dans la boîte de dialogue d’avertissement de sécurité. La suppression des informations de zone permet aux utilisateurs d’ouvrir des pièces jointes potentiellement dangereuses que Windows a bloquées.
Si vous activez ce paramètre de stratégie, Windows masque la case à cocher et le bouton Débloquer.
Si vous désactivez ce paramètre de stratégie, Windows affiche la case à cocher et le bouton Débloquer.
Si vous ne configurez pas ce paramètre de stratégie, Windows masque la case à cocher et le bouton Débloquer.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments- Value name
HideZoneInfoOnProperties
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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_RemoveZoneInfo
$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 'HideZoneInfoOnProperties' -Value 1 -Type DWordDisable
# Disable: AttachmentManager/AM_RemoveZoneInfo
$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 'HideZoneInfoOnProperties' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": AttachmentManager/AM_RemoveZoneInfo
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments'
Remove-ItemProperty -Path $k -Name 'HideZoneInfoOnProperties' -ErrorAction SilentlyContinue