Remove user name from Start Menu
Supprimer le nom d’utilisateur du menu de démarrage
Explanation
This policy setting allows you to remove the user name label from the Start Menu in Windows XP and Windows Server 2003.
If you enable this policy setting, the user name label is removed from the Start Menu in Windows XP and Windows Server 2003.
To remove the user name folder on Windows Vista, set the "Remove user folder link from Start Menu" policy setting.
If you disable or do not configure this policy setting, the user name label appears on the Start Menu in Windows XP and Windows Server 2003.
Ce paramètre de stratégie vous permet de supprimer l’étiquette de nom d’utilisateur du menu de démarrage dans Windows XP et Windows Server 2003.
Si vous activez ce paramètre de stratégie, l’étiquette de nom d’utilisateur est supprimée du menu de démarrage dans Windows XP et Windows Server 2003.
Pour supprimer le dossier de nom d’utilisateur sur Windows Vista, définissez le paramètre de stratégie « Supprimer le lien vers le dossier utilisateur du menu Démarrer ».
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’étiquette de nom d’utilisateur s’affiche dans le menu Démarrer sur Windows XP et Windows Server 2003.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
NoUserNameInStartMenu
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not 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/NoUserNameOnStartMenu
$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 'NoUserNameInStartMenu' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: StartMenu/NoUserNameOnStartMenu
$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 'NoUserNameInStartMenu' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": StartMenu/NoUserNameOnStartMenu
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoUserNameInStartMenu' -ErrorAction SilentlyContinue