Maximum allowed Recycle Bin size
Taille maximale autorisée de la Corbeille
Explanation
Limits the percentage of a volume's disk space that can be used to store deleted files.
If you enable this setting, the user has a maximum amount of disk space that may be used for the Recycle Bin on their workstation.
If you disable or do not configure this setting, users can change the total amount of disk space used by the Recycle Bin.
Note: This setting is applied to all volumes.
Limite le pourcentage d’espace disque d’un volume qui peut être utilisé pour stocker les fichiers supprimés.
Si vous activez ce paramètre, l’utilisateur disposera de la quantité d’espace disque maximale pouvant être utilisée pour la Corbeille sur son poste de travail.
Si vous désactivez ce paramètre ou si vous ne le configurez pas, les utilisateurs pourront modifier la quantité totale d’espace disque utilisée par la Corbeille.
Remarque : ce paramètre est appliqué à tous les volumes.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
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: WindowsExplorer/RecycleBinSize
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Maximum Recycle Bin size
Set-ItemProperty -Path $k -Name 'RecycleBinSize' -Value 10 -Type DWord # maximum 100Disable
# Disable: WindowsExplorer/RecycleBinSize
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsExplorer/RecycleBinSize
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'RecycleBinSize' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Maximum Recycle Bin size:Taille maximale de la Corbeille :RecycleBinSizeSpin | Numeric boxdecimal | RecycleBinSize | REG_DWORD | Max: 100 · Default (UI): 10 |