Open in the explorer

Prevent Codec Download

Empêcher le téléchargement des codecs

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Windows Components › Windows Media Player › Playback FR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Lecteur Windows Media › Lecture
Supported on
Windows Media Player for Windows XP and later. FR: Lecteur Windows Media pour Windows XP et version ultérieure.
ADMX file
windowsmediaplayer.admx
Internal name
windowsmediaplayer/PolicyCodecUpdate

Explanation

This policy setting allows you to prevent Windows Media Player from downloading codecs.

If you enable this policy setting, the Player is prevented from automatically downloading codecs to your computer. In addition, the Download codecs automatically check box on the Player tab in the Player is not available.

If you disable this policy setting, codecs are automatically downloaded and the Download codecs automatically check box is not available.

If you do not configure this policy setting, users can change the setting for the Download codecs automatically check box.

French text from Windows 11 26H2

Ce paramètre de stratégie permet d’empêcher le Lecteur Windows Media de télécharger des codecs.

Si vous activez ce paramètre de stratégie, le Lecteur ne peut pas télécharger automatiquement des codecs sur votre ordinateur. En outre, la case à cocher Télécharger les codecs automatiquement de l’onglet Lecteur du Lecteur n’est pas disponible.

Si vous désactivez ce paramètre de stratégie, les codecs sont automatiquement téléchargés et la case à cocher Télécharger les codecs automatiquement n’est pas disponible.

Si vous ne configurez pas ce paramètre de stratégie, les utilisateurs peuvent modifier le paramètre de la case à cocher Télécharger les codex automatiquement.

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsMediaPlayer
Value name
PreventCodecDownload
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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: windowsmediaplayer/PolicyCodecUpdate
$k = 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventCodecDownload' -Value 1 -Type DWord

Disable

# Disable: windowsmediaplayer/PolicyCodecUpdate
$k = 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventCodecDownload' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": windowsmediaplayer/PolicyCodecUpdate
$k = 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer'
Remove-ItemProperty -Path $k -Name 'PreventCodecDownload' -ErrorAction SilentlyContinue

Availability