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.

  1. Open Terminal.
  2. Execute the below command:
  3. Either restart the computer or log out and back in the the user account.

For the Apple KB please check HERE