How to prevent .DS_Store file creation over network connections

Having recently purchased a Macbook Pro and using it on my internal network comprising of a Windows Server 2008 box and several Windows 7 clients, I noticed a whole bunch of trash files being created by the Mac.  Namely, all the .DS_Store files.

A quick google search later and the Apple support site explains how to stop this bad behaviour:

  1. Open Terminal.
  2. Execute this command:
    defaults write com.apple.desktopservices DSDontWriteNetworkStores true
  3. Either restart the computer or log out and back in to the user account.
Bookmark the permalink.

One Response to How to prevent .DS_Store file creation over network connections

Leave a Reply

Your email address will not be published. Required fields are marked *