If you are using roaming user profiles and / or redirected user account folders in your Windows AD domain, you have maybe seen the fact that the recycle bin folders, which are also redirected to a network share, grow and grow, because most users regularly don’t think of deleting the recycle bin by theirselves from time to time.

If you don’t want to disable the recycle bin feature completely, but also don’t want to backup all the recycle bin trash every time with the other „useful“ user data, you can use this option:

  • Download NirCMD from here. The x86 version also works for x64.
  • Create a read-only network share and copy the extracted NirCMD files into it.
  • Open gpedit.msc for your domain, e.g. on an AD server.
  • Go to „Log off scripts“ and create a batch file with the content „\pathToYourSharenircmd.exe emptybin“.

Now the recycle bins are emptied automatically when users log off.

  [email protected]