Tuesday, November 15, 2016

You can customize the Recycle Bin more if you redirect folders

The Recycle Bin allows you to tweak its settings (maximum size, whether to permanently delete) for a few specific folders, but only if those folders are subject to redirection to a network share. Usually that redirection is set in an Active Directory environment, but you can whack the Registry to make it work on a standalone computer too. The relevant values are here:

HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

Only the folders shown there are eligible for redirection. Actually, the set of folders the Recycle Bin tweaking will work on is the intersection of that list and the list of known folders. Once you've redirected the folder, you can move to the BitBucket Registry key under Explorer
and add a new subkey KnownFolder. Inside there, create another subkey with the curly-braced {GUID} of the target folder. The DWORD values NukeOnDelete (0 or 1) and MaxCapacity (in megabytes) control the behavior of the Recycle Bin for files deleted from that folder.

Based on my Super User answer.

No comments:

Post a Comment