Remove user's folders from the Start Menu
Supprimer le dossier des utilisateurs du menu Démarrer
Explanation
Hides all folders on the user-specific (top) section of the Start menu. Other items appear, but folders are hidden.
This setting is designed for use with redirected folders. Redirected folders appear on the main (bottom) section of the Start menu. However, the original, user-specific version of the folder still appears on the top section of the Start menu. Because the appearance of two folders with the same name might confuse users, you can use this setting to hide user-specific folders.
Note that this setting hides all user-specific folders, not just those associated with redirected folders.
If you enable this setting, no folders appear on the top section of the Start menu. If users add folders to the Start Menu directory in their user profiles, the folders appear in the directory but not on the Start menu.
If you disable this setting or do not configured it, Windows 2000 Professional and Windows XP Professional display folders on both sections of the Start menu.
Cache tous les dossiers dans la section réservée à l’utilisateur du menu Démarrer (en haut). D’autres éléments apparaissent, mais les dossiers sont cachés.
Ce paramètre est destiné à être utilisé avec les dossiers redirigés. Les dossiers redirigés apparaissent dans la section principale du menu Démarrer (en bas). Cependant, la version originale du dossier spécifique utilisateur apparaît toujours en haut du menu Démarrer. Dans la mesure où l’affichage de deux dossiers ayant le même nom peut dérouter les utilisateurs, ce paramètre permet de cacher les dossiers spécifiques aux utilisateurs.
Notez que ce paramètre cache tous les dossiers spécifiques aux utilisateurs, pas uniquement ceux associés aux dossiers redirigés.
Si vous activez ce paramètre, aucun dossier n’apparaît dans la section supérieure du menu Démarrer. Si les utilisateurs ajoutent des dossiers au répertoire du menu Démarrer dans leur profil utilisateur, les dossiers apparaissent dans le répertoire mais ne sont pas affichés dans le menu Démarrer.
Si vous désactivez ce paramètre ou s’il n’est pas configuré, Windows 2000 Professionnel et Windows XP Professionnel affichent les dossiers des deux sections du menu Démarrer.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
NoStartMenuSubFolders
| 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/NoStartMenuSubFolders
$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 'NoStartMenuSubFolders' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: StartMenu/NoStartMenuSubFolders
$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 'NoStartMenuSubFolders' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": StartMenu/NoStartMenuSubFolders
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoStartMenuSubFolders' -ErrorAction SilentlyContinue