Remove Recycle Bin icon from desktop
Supprimer l’icône de la Corbeille du Bureau
Explanation
Removes most occurrences of the Recycle Bin icon.
This setting removes the Recycle Bin 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 Recycle Bin folder.
Note: To make changes to this setting effective, you must log off and then log back on.
Supprime toutes les occurrences de l’icône de la Corbeille.
Ce paramètre supprime l’icône de la Corbeille 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 d’utiliser d’autres méthodes pour accéder au contenu du dossier de la Corbeille.
Remarque : pour que les modifications apportées à ce paramètre soient prises en compte, vous devez fermer puis rouvrir une session.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum- Value name
{645FF040-5081-101B-9F08-00AA002F954E}
| 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/NoRecycleBinIcon
$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 '{645FF040-5081-101B-9F08-00AA002F954E}' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: Desktop/NoRecycleBinIcon
$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 '{645FF040-5081-101B-9F08-00AA002F954E}' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Desktop/NoRecycleBinIcon
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum'
Remove-ItemProperty -Path $k -Name '{645FF040-5081-101B-9F08-00AA002F954E}' -ErrorAction SilentlyContinue