Remove My Documents icon on the desktop
Supprimer l’icône Mes documents du Bureau
Explanation
Removes most occurrences of the My Documents icon.
This setting removes the My Documents icon from the desktop, from File Explorer, from programs that use the File Explorer windows, and from the standard Open dialog box.
This setting does not prevent the user from using other methods to gain access to the contents of the My Documents folder.
This setting does not remove the My Documents icon from the Start menu. To do so, use the "Remove My Documents icon from Start Menu" setting.
Note: To make changes to this setting effective, you must log off from and log back on to Windows 2000 Professional.
Supprime la plupart des occurrences de l’icône Mes documents.
Ce paramètre supprime l’icône Mes documents du Bureau, de l’Explorateur de fichiers, des programmes qui utilisent les fenêtres de l’Explorateur de fichiers et de la boîte de dialogue Ouvrir standard.
Ce paramètre n’empêche pas l’utilisateur de recourir à d’autres méthodes pour accéder au contenu du dossier Mes documents.
Ce paramètre ne supprime pas l’icône Mes documents du menu Démarrer. Pour cela, utilisez le paramètre « Supprimer l’icône Mes documents du menu Démarrer ».
Remarque : pour que les modifications apportées à ce paramètre soient prises en compte, vous devez fermer puis rouvrir une session dans Windows 2000 Professionnel.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum- Value name
{450D8FBA-AD25-11D0-98A8-0800361B1103}
| 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: Desktop/NoMyDocumentsIcon
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum'
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 '{450D8FBA-AD25-11D0-98A8-0800361B1103}' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: Desktop/NoMyDocumentsIcon
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum'
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 '{450D8FBA-AD25-11D0-98A8-0800361B1103}' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Desktop/NoMyDocumentsIcon
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum'
Remove-ItemProperty -Path $k -Name '{450D8FBA-AD25-11D0-98A8-0800361B1103}' -ErrorAction SilentlyContinue