Empêcher la création d’un raccourci sur le Bureau : valeur de Registre DesktopShortcutOrdinateurHKLM\Software\Policies\Microsoft\WindowsMediaPlayer

ID de stratégie
PreventWMPDeskTopShortcut
Étendue
Configuration ordinateur
Pris en charge sur
Lecteur Windows Media Série 9 et version ultérieure.
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Composants Windows › Lecteur Windows Media

Registre

DesktopShortcut

REG_SZOrdinateur
Valeur si activée
no
Valeur si désactivée
yes
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsMediaPlayer]

; Options (en utiliser une seule)
; Activé
"DesktopShortcut"="no"
; Désactivé
"DesktopShortcut"="yes"
CMD
:: Options (en utiliser une seule)

:: Activé
reg add "HKLM\Software\Policies\Microsoft\WindowsMediaPlayer" /v "DesktopShortcut" /t REG_SZ /d "no" /f
:: Désactivé
reg add "HKLM\Software\Policies\Microsoft\WindowsMediaPlayer" /v "DesktopShortcut" /t REG_SZ /d "yes" /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\Software\Policies\Microsoft\WindowsMediaPlayer' -Force | Out-Null

# Options (en utiliser une seule)
# Activé
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\WindowsMediaPlayer' -Name 'DesktopShortcut' -PropertyType String -Value 'no' -Force | Out-Null
# Désactivé
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\WindowsMediaPlayer' -Name 'DesktopShortcut' -PropertyType String -Value 'yes' -Force | Out-Null