Having recently set up a Mac again on my network I forgot how much I hate the .DS_Store files littering my NAS units / Windows boxes. So here’s how to quickly disable their creation!
Note: This will affect the user’s interactions with SMB/CIFS, AFP, NFS and WebDAV servers.
- Open Terminal.
- Execute the below command:
1defaults write com.apple.desktopservices DSDontWriteNetworkStores true
- Either restart the computer or log out and back in the the user account.
For the Apple KB please check HERE