Question

Locked

How do I Empty recycle bin with batch or script?

By jcwfbi ·
I wanted to create a script or batch file to automatically empty recycle bin in server 03 or 08, on logon or logoff. Anyone know how I could do this?

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

How about

by seanferd In reply to How do I Empty recycle bi ...

http://demonictalkingskull.com/2010/06/empty-users-recycle-bin-with-powershell-and-gpo/

Collapse -

why can't I answer this

by Who Am I Really In reply to How do I Empty recycle bi ...

can't post my full answer
use GPO

Collapse -

Reponse To Answer

by Who Am I Really In reply to why can't I answer this

Here is the full text of my answer that I can't post here for some retarded reason:

https://docs.google.com/document/d/1AVPgplhwiD01_RaZwjiogDQPfetl1_pQm_tyXhtaVw8/edit?hl=en&authkey=CIXqsN0I

Collapse -

Reponse To Answer

by seanferd In reply to why can't I answer this

I'll try pasting the answer from Who Am I Really:

a simple method is to just disable the recycle bin . . .

if the users are going to lose any / all deleted files at log off,
then why not just disable the recycle bin in its entirety

open the properties for the recycle bin
- set it to 0%
- and tick the box "Do not move deleted files to the recycle bin"

also enable the following Group Policies to enforce those settings:
User Configuration > Administrative Templates > Windows Components > Windows Explorer -
- Do not move deleted files to the Recycle Bin : Enabled
- Maximum allowed Recycle Bin : Enabled : and set to 0%

and the following:
User Configuration > Administrative Templates > Desktop -
- Remove Recycle Bin from the desktop : Enabled

Back to Networks Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums