Remove Documents icon from Start Menu
Supprimer l’icône Documents du menu Démarrer
Explanation
This policy setting allows you to remove the Documents icon from the Start menu and its submenus.
If you enable this policy setting, the Documents icon is removed from the Start menu and its submenus. Enabling this policy setting only removes the icon. It does not prevent the user from using other methods to gain access to the contents of the Documents folder.
Note: To make changes to this policy setting effective, you must log off and then log on.
If you disable or do not configure this policy setting, he Documents icon is available from the Start menu.
Also, see the "Remove Documents icon on the desktop" policy setting.
Ce paramètre de stratégie vous permet de supprimer l’icône Documents du menu Démarrer et de ses sous-menus.
Si vous activez ce paramètre de stratégie, l’icône Documents est supprimée du menu Démarrer et de ses sous-menus. Le fait d’activer ce paramètre de stratégie supprime uniquement l’icône. Il n’empêche pas l’utilisateur de recourir à d’autres méthodes pour accéder au contenu du dossier Documents.
Remarque : pour que les modifications apportées à ce paramètre de stratégie prennent effet, vous devez fermer puis ouvrir une session
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’icône Documents est disponible dans le menu Démarrer.
Consultez également « Supprimer l’icône Documents du Bureau ».
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
NoSMMyDocs
| 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/NoSMMyDocuments
$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 'NoSMMyDocs' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: StartMenu/NoSMMyDocuments
$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 'NoSMMyDocs' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": StartMenu/NoSMMyDocuments
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoSMMyDocs' -ErrorAction SilentlyContinue