Allow Internet Explorer to play media files that use alternative codecs
Autoriser Internet Explorer à lire les fichiers multimédias qui utilisent des codecs de remplacement
Explanation
This policy setting specifies whether Internet Explorer plays media files that use alternative codecs and that require additional software.
If you enable this policy setting, Internet Explorer plays these files, if the appropriate software is installed.
If you disable this policy setting, Internet Explorer does not play these files.
If you do not configure this policy setting, the user can change the "Enable alternative codecs in HTML5 media elements" setting on the Advanced tab in the Internet Options dialog box.
Ce paramètre de stratégie spécifie si Internet Explorer lit les fichiers multimédias qui utilisent des codecs de remplacement et qui nécessitent des logiciels supplémentaires.
Si vous activez ce paramètre de stratégie, Internet Explorer lit ces fichiers, si les logiciels appropriés sont installés.
Si vous désactivez ce paramètre de stratégie, Internet Explorer ne lit pas ces fichiers.
Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur peut modifier l’option « Activer d’autres codecs dans des éléments multimédias HTML5 » sous l’onglet Avancé de la boîte de dialogue Options Internet.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\MainHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main- Value name
EnableAlternativeCodec
| State | Value written |
|---|---|
| Enabled | REG_SZ = yes |
| Disabled | REG_SZ = no |
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/EnableAlternativeCodec
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableAlternativeCodec' -Value 'yes' -Type StringDisable
# Disable: inetres/EnableAlternativeCodec
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableAlternativeCodec' -Value 'no' -Type StringRevert to "Not configured"
# Revert to "Not configured": inetres/EnableAlternativeCodec
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
Remove-ItemProperty -Path $k -Name 'EnableAlternativeCodec' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"