I use my Mac in a corporate Windows environment all the time, and have it set so that it doesn't drop .DS_Store turds all over the network. I used the following well-known terminal command to disable it:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

However, I also have a server at home as well as a Time Capsule, and I would like the .DS_Store file created on those shares.

Is there any way to make an exception to the rule?

I'm running Mavericks BTW.

  • How have you set it? App or Terminal command?
    – grg
    Jul 2, 2014 at 17:47
  • Using the terminal: defaults write com.apple.desktopservices DSDontWriteNetworkStores true
    – Wes Sayeed
    Jul 2, 2014 at 18:06

1 Answer 1


I don't think you can have it both ways.

I can imagine a bit of a work around that involves the Mac knowing what network it is on, and then changing the defaults write command to match the network. Something like http://www.controlplaneapp.com/about/ would help you get that done.

(not the simplest solution I'll admit)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .