Prevent Quick Launch Toolbar Shortcut Creation
Empêcher la création d’un raccourci dans la barre d’outils Lancement rapide
Explanation
This policy setting allows you to prevent a shortcut for the Player from being added to the Quick Launch bar.
If you enable this policy setting, the user cannot add the shortcut for the Player to the Quick Launch bar.
If you disable or do not configure this policy setting, the user can choose whether to add the shortcut for the Player to the Quick Launch bar.
Ce paramètre de stratégie permet d’empêcher l’ajout d’un raccourci vers le Lecteur dans la barre d’outils Lancement rapide.
Si vous activez ce paramètre de stratégie, l’utilisateur ne peut pas ajouter le raccourci vers le Lecteur à la barre Lancement rapide.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, l’utilisateur peut décider d’ajouter ou non le raccourci à la barre d’outils Lancement rapide.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsMediaPlayer- Value name
QuickLaunchShortcut
| State | Value written |
|---|---|
| Enabled | REG_SZ = no |
| Disabled | REG_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/PreventQuickLaunchShortcut
$k = 'HKLM:\Software\Policies\Microsoft\WindowsMediaPlayer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'QuickLaunchShortcut' -Value 'no' -Type StringDisable
# Disable: windowsmediaplayer/PreventQuickLaunchShortcut
$k = 'HKLM:\Software\Policies\Microsoft\WindowsMediaPlayer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'QuickLaunchShortcut' -Value 'yes' -Type StringRevert to "Not configured"
# Revert to "Not configured": windowsmediaplayer/PreventQuickLaunchShortcut
$k = 'HKLM:\Software\Policies\Microsoft\WindowsMediaPlayer'
Remove-ItemProperty -Path $k -Name 'QuickLaunchShortcut' -ErrorAction SilentlyContinue