Add the Run command to the Start Menu
Ajouter la commande Exécuter au menu Démarrer
Explanation
If you enable this setting, the Run command is added to the Start menu. If you disable or do not configure this setting, the Run command is not visible on the Start menu by default, but it can be added from the Taskbar and Start menu properties. If the Remove Run link from Start Menu policy is set, the Add the Run command to the Start menu policy has no effect.
Si vous activez ce paramètre, la commande Exécuter est ajoutée au menu Démarrer. Si vous désactivez ce paramètre ou si vous ne le configurez pas, la commande Exécuter n’est pas visible par défaut dans le menu Démarrer ; toutefois, elle peut être ajoutée à partir des Propriétés de la Barre des tâches et du menu Démarrer. Si la stratégie Supprimer le lien vers la commande Exécuter du menu Démarrer est définie, la stratégie Ajouter la commande Exécuter au menu Démarrer n’a aucun effet.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
ForceRunOnStartMenu
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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: StartMenu/ShowRunInStartMenu
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ForceRunOnStartMenu' -Value 1 -Type DWordDisable
# Disable: StartMenu/ShowRunInStartMenu
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ForceRunOnStartMenu' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": StartMenu/ShowRunInStartMenu
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'ForceRunOnStartMenu' -ErrorAction SilentlyContinue