All Processes
Tous les processus
Explanation
Internet Explorer uses Multipurpose Internet Mail Extensions (MIME) data to determine file handling procedures for files received through a Web server.
This policy setting determines whether Internet Explorer requires that all file-type information provided by Web servers be consistent. For example, if the MIME type of a file is text/plain but the MIME sniff indicates that the file is really an executable file, Internet Explorer renames the file by saving it in the Internet Explorer cache and changing its extension.
If you enable this policy setting, Consistent Mime Handling is enabled for all processes.
If you disable or do not configure this policy setting, Consistent Mime Handling is prevented for all processes.
Internet Explorer utilise les informations de type MIME (Multipurpose Internet Mail Extensions) pour décider comment gérer les fichiers reçus depuis un serveur Web.
Ce paramètre de stratégie indique si Internet Explorer exige que toutes les informations concernant les types de fichier fournies par les serveurs Web soient cohérentes. Par exemple, si le type MIME d’un fichier est text/plain mais que la détection MIME indique qu’il s’agit d’un fichier exécutable, Internet Explorer renomme le fichier en l’enregistrant dans le cache Internet Explorer et en modifiant son extension.
Si vous activez ce paramètre de stratégie, la Gestion MIME cohérente est activée pour tous les processus.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, la gestion MIME cohérente est interdite pour tous les processus.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_MIME_HANDLINGHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_MIME_HANDLING- Value name
*
| State | Value written |
|---|---|
| Enabled | REG_SZ = 1 |
| Disabled | REG_SZ = 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.
Computer (HKLM)
Enable
# Enable: inetres/IESF_PolicyAllProcesses_5
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_MIME_HANDLING'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name '*' -Value '1' -Type StringDisable
# Disable: inetres/IESF_PolicyAllProcesses_5
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_MIME_HANDLING'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name '*' -Value '0' -Type StringRevert to "Not configured"
# Revert to "Not configured": inetres/IESF_PolicyAllProcesses_5
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_MIME_HANDLING'
Remove-ItemProperty -Path $k -Name '`*' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"