Open in the explorer

Remove the "Undock PC" button from the Start Menu

Supprimer le bouton « Retirer » du menu Démarrer

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Start Menu and Taskbar FR: Configuration utilisateur › Stratégies › Modèles d'administration › Menu Démarrer et barre des tâches
Supported on
Windows Server 2008, Windows Server 2003, Windows 7, Windows Vista, and Windows XP FR: Windows Server 2008, Windows Server 2003, Windows 7, Windows Vista et Windows XP
ADMX file
StartMenu.admx
Internal name
StartMenu/RemoveUnDockPCButton

Explanation

If you enable this setting, the "Undock PC" button is removed from the simple Start Menu, and your PC cannot be undocked.

If you disable this setting or do not configure it, the "Undock PC" button remains on the simple Start menu, and your PC can be undocked.

French text from Windows 11 26H2

Si vous désactivez ce paramètre, le bouton « Retirer » est supprimé du menu Démarrer simple et votre ordinateur ne peut être retiré de sa station d’accueil.

Si vous désactivez ce paramètre ou si vous ne le configurez pas, le bouton « Retirer » est conservé dans le menu Démarrer simple ; par ailleurs, votre PC ne peut être retiré de sa station d’accueil.

Registry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Value name
NoStartMenuEjectPC
StateValue written
Enablednot defined in the ADMX
Disablednot defined in the ADMX

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

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/RemoveUnDockPCButton
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoStartMenuEjectPC' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: StartMenu/RemoveUnDockPCButton
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoStartMenuEjectPC' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": StartMenu/RemoveUnDockPCButton
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoStartMenuEjectPC' -ErrorAction SilentlyContinue

Availability