Corrupt $RECYCLE.BIN with profile folders

Windows keeps creating a $RECYCLE.BIN dir on the network share.

Whenever a file would be deleted, this message would appear: “The Recycle Bin Is Corrupt or Invalid. Do You Want to Empty the Recycle Bin?”

Samba has an option “veto files” which can be used to stop the creation of directories.

Put this in each SMB share under Advanced Mode > Auxiliary Parameters:

The slashes are not directory separators in this case.

Or speed up CIFS shares: