Since there are no policies for the individual bins, we have to modify the registry settings for the user in other ways. Before you start: modifying these registry keys is officially unsupported. They may stop working at any time after a service pack, hotfix, etc.
That would be through the use of Group Policy Preferences Registry settings or script that would import or set the registry settings. No matter which way you would do it, the registry would have the following settings for each known folder recycle bin:. The easy way to get the registry settings would be by redirecting the desired folders and configuring the Recycle bin for each folder as desired through the GUI with a user that is already redirected. That is by right-clicking on the Recycle Bin icon and bringing up Properties to configure the individual recycle bin settings of a user that has the folders already redirected.
The following picture is an example where just the Documents folder was redirected and configured to delete the files immediately. To resolve this, I opened Computer Management, navigated to Disk Management, and assigned a drive letter manually. TLDPolicies -recurse. Take a backup with GPMC right away, and if you can, set up a scheduled task to perform the backup!
Your email address will not be published. Save my name, email, and website in this browser for the next time I comment. The cmdlet lets you specify the letter drive from which you want to purge Recycle Bin contents.
You could replace the script above with a one-liner script using this cmdlet. Your email address will not be published. Reference gallery.
0コメント