Prevent .DS_Store file creation on network volumes
This article explains how to prevent OS X from creating new .DS_Store files when opening folders on remote volumes mounted using SMB/CIFS, AFP, NFS, and WebDAV.
The creation of .DS_Store files is frequently the source of complaints against Mac users, who often leave a trail of these files scattered throughout the filesystem when "visiting" a Windows computer. Even with this hint in place, the .DS_Store files will continue to be created on local volumes (which is a good thing).

To prevent the creation of these files, open the Terminal and type:
defaults write DSDontWriteNetworkStores true

Should be compatible with Mac OS X 10.5, 10.6, 10.7, 10.8.
To revert this setting to default, type:

defaults delete DSDontWriteNetworkStores

For the change to take effect, a restart is necessary!

admin / Dec 06, 2012
Files This application is a little script, which can enable / disable the creation of DS_Store files on network volumes in OS X. Source:
2004 - 2022 /