Impedisci la creazione di collegamenti sul desktop: valore del Registro di sistema DesktopShortcutComputerHKLM\Software\Policies\Microsoft\WindowsMediaPlayer

ID criterio
PreventWMPDeskTopShortcut
Ambito
Configurazione computer
Supportato in
Windows Media Player 9 Series e versioni successive.
Origine
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
Categoria
Componenti di Windows › Windows Media Player

Registro

DesktopShortcut

REG_SZComputer
Valore abilitato
no
Valore disabilitato
yes
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsMediaPlayer]

; Opzioni (usarne solo una)
; Abilitato
"DesktopShortcut"="no"
; Disabilitato
"DesktopShortcut"="yes"
CMD
:: Opzioni (usarne solo una)

:: Abilitato
reg add "HKLM\Software\Policies\Microsoft\WindowsMediaPlayer" /v "DesktopShortcut" /t REG_SZ /d "no" /f
:: Disabilitato
reg add "HKLM\Software\Policies\Microsoft\WindowsMediaPlayer" /v "DesktopShortcut" /t REG_SZ /d "yes" /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\WindowsMediaPlayer' -Force | Out-Null

# Opzioni (usarne solo una)
# Abilitato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\WindowsMediaPlayer' -Name 'DesktopShortcut' -PropertyType String -Value 'no' -Force | Out-Null
# Disabilitato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\WindowsMediaPlayer' -Name 'DesktopShortcut' -PropertyType String -Value 'yes' -Force | Out-Null