Open in the explorer

Prevent Desktop Shortcut Creation

Empêcher la création d’un raccourci sur le Bureau

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Windows Media Player FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Lecteur Windows Media
Supported on
Windows Media Player 9 Series and later. FR: Lecteur Windows Media Série 9 et version ultérieure.
ADMX file
windowsmediaplayer.admx
Internal name
windowsmediaplayer/PreventWMPDeskTopShortcut

Explanation

This policy setting allows you to prevent a shortcut icon for the Player from being added to the user's desktop.

If you enable this policy setting, users cannot add the Player shortcut icon to their desktops.

If you disable or do not configure this policy setting, users can choose whether to add the Player shortcut icon to their desktops.

French text from Windows 11 26H2

Ce paramètre de stratégie permet d’empêcher l’ajout d’une icône de raccourci vers le Lecteur sur le Bureau de l’utilisateur.

Si vous activez ce paramètre de stratégie, les utilisateurs ne peuvent pas ajouter l’icône de raccourci vers le Lecteur à leur Bureau.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les utilisateurs peuvent décider d’ajouter ou non l’icône de raccourci vers le Lecteur à leur Bureau.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsMediaPlayer
Value name
DesktopShortcut
StateValue written
EnabledREG_SZ = no
DisabledREG_SZ = yes

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/PreventWMPDeskTopShortcut
$k = 'HKLM:\Software\Policies\Microsoft\WindowsMediaPlayer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DesktopShortcut' -Value 'no' -Type String

Disable

# Disable: windowsmediaplayer/PreventWMPDeskTopShortcut
$k = 'HKLM:\Software\Policies\Microsoft\WindowsMediaPlayer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DesktopShortcut' -Value 'yes' -Type String

Revert to "Not configured"

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

Availability