Windows Thread, Deleting the RECYCLER folder from user home folders? in Technical; I've had a search through here and found some nice ways to empty user recycle bins. But I've noticed these ...
26th September 2011, 12:18 PM #1
- Rep Power
Deleting the RECYCLER folder from user home folders?
I've had a search through here and found some nice ways to empty user recycle bins. But I've noticed these do the same operation as if the user was right-clicking on the recycle bin and clicking Empty Recycle Bin.
I've noticed, even when users do this, the RECYCLER hidden folder in their home folders sometimes still has a large size when right-clicking it and going to Properties. This takes up their space quotas and we get students walking in saying they've emptied their bin. We check their home folder's RECYCLER folder to find it is quite large. We delete it and their space is free again.
Is there any way to run a script, either on user logon, or even just ourselves running a scheduled task, to delete all folders named RECYCLER in user home folders as defined in AD? I believe we would have to use %username% somewhere in the command but am not sure how or if this will work?
26th September 2011, 12:33 PM #2
Not sure if it'd necessarily be a wise idea to do it - you can guarantee that on the day you do it, someone important will have sudden need of that file they deleted yesterday and open up the Recycle Bin to find it empty... I know it seems unlikely given how averse staff are to deleting and tidying, sometimes, but you never know!
If it's not causing a constant and time consuming problem (an hour a day sort of level), I'd be inclined to leave it and just continue dealing with it ad hoc when it causes an issue - as, indeed, I do here.
26th September 2011, 01:39 PM #3
Hi Is this what you are after Enable/Disable Recycle Bin
I also think you can do it in gpo here User Configuration > Policies > Administrative Templates > Windows Components > Windows Explorer and enable 'Do not move deleted files to the Recycle Bin but I have never done it.
Please be careful this may break this.
Lastly I think there was also a gpo where you could set the recycle bin size.
26th September 2011, 01:48 PM #4
A few of our staff often try to tidy their work areas but then seem to use the Recycle Bin as extra storage. We once deleted the recycle bin folder for a number of staff to free up space and someone came in and said that a document was missing from their work area. We then asked where the file was located...it was in the recycle bin!!
Originally Posted by sonofsanta
26th September 2011, 03:12 PM #5
- Rep Power
I've worked on a simple command and placed it into a batch file:
rd /s /q "\\server\pathtohomefolder\%username%\recycler "
... and applied it into a GP as a logon script. Works great!
By Bruce123 in forum Windows Server 2000/2003
Last Post: 30th September 2011, 11:59 AM
Last Post: 26th January 2009, 11:01 PM
By projector1 in forum Scripts
Last Post: 9th March 2008, 01:15 AM
By augustm in forum Windows
Last Post: 30th November 2007, 12:43 PM
By markcuk in forum How do you do....it?
Last Post: 25th April 2007, 11:38 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)