Empêcher le téléchargement des codecs : valeur de Registre PreventCodecDownloadUtilisateurHKCU\Software\Policies\Microsoft\WindowsMediaPlayer
- ID de stratégie
- PolicyCodecUpdate
- Étendue
- Configuration utilisateur
- Pris en charge sur
- Lecteur Windows Media pour Windows XP et version ultérieure.
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Catégorie
- Composants Windows › Lecteur Windows Media › Lecture
Registre
PreventCodecDownload
REG_DWORDUtilisateurHKCU\Software\Policies\Microsoft\WindowsMediaPlayer Clé actuelle
- Valeur si activée
- 1
- Valeur si désactivée
- 0
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsMediaPlayer] ; Options (en utiliser une seule) ; Activé "PreventCodecDownload"=dword:00000001 ; Désactivé "PreventCodecDownload"=dword:00000000
CMD
:: Options (en utiliser une seule) :: Activé reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer" /v "PreventCodecDownload" /t REG_DWORD /d 1 /f :: Désactivé reg add "HKCU\Software\Policies\Microsoft\WindowsMediaPlayer" /v "PreventCodecDownload" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer' -Force | Out-Null # Options (en utiliser une seule) # Activé New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer' -Name 'PreventCodecDownload' -PropertyType DWord -Value 1 -Force | Out-Null # Désactivé New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer' -Name 'PreventCodecDownload' -PropertyType DWord -Value 0 -Force | Out-Null