Default risk level for file attachments
Niveau de risque par défaut pour les pièces jointes
Explanation
This policy setting allows you to manage the default risk level for file types. To fully customize the risk level for file attachments, you may also need to configure the trust logic for file attachments.
High Risk: If the attachment is in the list of high-risk file types and is from the restricted zone, Windows blocks the user from accessing the file. If the file is from the Internet zone, Windows prompts the user before accessing the file.
Moderate Risk: If the attachment is in the list of moderate-risk file types and is from the restricted or Internet zone, Windows prompts the user before accessing the file.
Low Risk: If the attachment is in the list of low-risk file types, Windows will not prompt the user before accessing the file, regardless of the file's zone information.
If you enable this policy setting, you can specify the default risk level for file types.
If you disable this policy setting, Windows sets the default risk level to moderate.
If you do not configure this policy setting, Windows sets the default risk level to moderate.
Ce paramètre de stratégie vous permet de gérer le niveau de risque par défaut des types de fichiers. Pour personnaliser totalement le niveau de risque des pièces jointes, vous devrez peut-être également configurer la logique de confiance des pièces jointes.
Risque élevé : si la pièce jointe figure dans la liste des types de fichiers à risque élevé et provient de la zone restreinte, Windows empêche l’utilisateur d’accéder au fichier. Si le fichier provient de la zone Internet, Windows demande à l’utilisateur s’il souhaite accéder au fichier.
Risque modéré : si la pièce jointe figure dans la liste des types de fichiers à risque modéré et provient de la zone restreinte ou d’Internet, Windows demande à l’utilisateur s’il souhaite accéder au fichier.
Risque faible : si la pièce jointe figure dans la liste des types de fichiers à risque faible, Windows laisse l’utilisateur accéder au fichier, quelles que soient les informations de zone du fichier.
Si vous activez ce paramètre de stratégie, vous pouvez spécifier le niveau de risque par défaut en fonction des types de fichiers.
Si vous désactivez ce paramètre de stratégie, Windows active par défaut le niveau de risque modéré.
Si vous ne configurez pas ce paramètre de stratégie, Windows active par défaut le niveau de risque modéré.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations- 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.
Enable
# Enable: AttachmentManager/AM_SetFileRiskLevel
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Set the default risk level
# Possible options:
# High Risk = 6150
# Moderate Risk = 6151
# Low Risk = 6152
Set-ItemProperty -Path $k -Name 'DefaultFileTypeRisk' -Value 6151 -Type DWordDisable
# Disable: AttachmentManager/AM_SetFileRiskLevel
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": AttachmentManager/AM_SetFileRiskLevel
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations'
Remove-ItemProperty -Path $k -Name 'DefaultFileTypeRisk' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Set the default risk levelDéfinir le niveau de risque par défautAM_RiskLevel | Drop-down listenum | DefaultFileTypeRisk | REG_DWORD | Default choice (UI): #1
|