Ouvrir dans l'explorateur

Empêcher la création d’un raccourci dans la barre d’outils Lancement rapide

Prevent Quick Launch Toolbar Shortcut Creation

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Lecteur Windows Media EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Windows Media Player
Pris en charge sur
Lecteur Windows Media Série 9 et version ultérieure. EN : Windows Media Player 9 Series and later.
Fichier ADMX
windowsmediaplayer.admx
Nom interne
windowsmediaplayer/PreventQuickLaunchShortcut

Explication

Texte français issu de Windows 11 26H2

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.

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.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsMediaPlayer
Nom de la valeur
QuickLaunchShortcut
ÉtatValeur écrite
ActivéREG_SZ = no
DésactivéREG_SZ = yes

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : 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 String

Désactiver

# Désactiver : 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 String

Revenir à « Non configuré »

# Revenir à « Non configuré » : windowsmediaplayer/PreventQuickLaunchShortcut
$k = 'HKLM:\Software\Policies\Microsoft\WindowsMediaPlayer'
Remove-ItemProperty -Path $k -Name 'QuickLaunchShortcut' -ErrorAction SilentlyContinue

Disponibilité