Untrusted Font Blocking
Blocage de police non approuvée
Explanation
This security feature provides a global setting to prevent programs from loading untrusted fonts. Untrusted fonts are any font installed outside of the %windir%\Fonts directory. This feature can be configured to be in 3 modes: On, Off, and Audit. By default, it is Off and no fonts are blocked. If you aren't quite ready to deploy this feature into your organization, you can run it in Audit mode to see if blocking untrusted fonts causes any usability or compatibility issues.
Cette fonctionnalité de sécurité fournit un paramètre global pour empêcher les programmes de charger des polices non approuvées. Les polices non approuvées sont les polices installées en dehors du répertoire %windir%\Polices. Cette fonctionnalité présente 3 modes : Activée, Désactivée et Audit. Par défaut, elle est désactivé et aucune police n'est bloquée. Si vous n'êtes pas tout à fait prêt pour le déploiement de cette fonctionnalité dans votre organisation, vous pouvez l'exécuter en mode d'Audit pour voir si le blocage des polices non approuvés entraîne des problèmes d'utilisation ou de compatibilité.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\MitigationOptions- 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: GroupPolicy/FontMitigation
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\MitigationOptions'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Mitigation Options
# Possible options:
# Block untrusted fonts and log events = 1000000000000
# Do not block untrusted fonts = 2000000000000
# Log events without blocking untrusted fonts = 3000000000000
Set-ItemProperty -Path $k -Name 'MitigationOptions_FontBocking' -Value '1000000000000' -Type StringDisable
# Disable: GroupPolicy/FontMitigation
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": GroupPolicy/FontMitigation
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\MitigationOptions'
Remove-ItemProperty -Path $k -Name 'MitigationOptions_FontBocking' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Mitigation OptionsOptions d'atténuationFontMitigation_DL | Drop-down listenum | MitigationOptions_FontBocking | REG_SZ | Required · Default choice (UI): #0
|