Prevent Codec Download
Empêcher le téléchargement des codecs
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert to "Not configured"
# Revert to "Not configured": windowsmediaplayer/PolicyCodecUpdate
$k = 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer'
Remove-ItemProperty -Path $k -Name 'PreventCodecDownload' -ErrorAction SilentlyContinue