Skip to main content
Solved

Disable DS_Store Files on Network Not Working in 10.11?

  • April 14, 2016
  • 6 replies
  • 52 views

Forum|alt.badge.img+10

Has anyone had success with the following command in 10.11?

defaults write /Library/Preferences/com.apple.desktopservices DSDontWriteNetworkStores -bool true

I've tried it at the global level (command above) as well as per-user and it doesn't seem to be having any effect. This is on 10.11.4

Thanks,
Eric

Best answer by bpavlov

What you're looking for is:

defaults write /Library/Preferences/com.apple.desktopservices DSDontWriteNetworkStores -string true

6 replies

bpavlov
Forum|alt.badge.img+18
  • Esteemed Contributor
  • Answer
  • April 14, 2016

What you're looking for is:

defaults write /Library/Preferences/com.apple.desktopservices DSDontWriteNetworkStores -string true

Forum|alt.badge.img+10
  • Author
  • Contributor
  • April 15, 2016

Thanks, @bpavlov . Kind of annoying that -bool worked in 10.10 and it you're writing a value of true, why is it a string and not boolean?


bpavlov
Forum|alt.badge.img+18
  • Esteemed Contributor
  • April 15, 2016

I'm surprised that work for you in 10.10. it's always been a string from what apple documented. I wish I could find the KB but I believe it was documented as:
defaults write /Library/Preferences/com.apple.desktopservices DSDontWriteNetworkStores true

Which if you are specifying the key type, it defaults to 'string'. Why a string for this particular preference? Not sure, gotta talk to the dev at Apple who implemented that preference.


Forum|alt.badge.img+9
  • Contributor
  • February 23, 2017

I've heard from AppleCare that this no longer works — but the agent may not have known about or tried the string vs. the Boolean.


donmontalvo
Forum|alt.badge.img+36
  • Hall of Fame
  • December 13, 2017

Existing (or new?) KB updated for High Sierra.

Adjust SMB browsing behavior in macOS High Sierra 10.13


rtylerdavis
Forum|alt.badge.img+10
  • Employee
  • April 4, 2019

So given the article posted by @donmontalvo it seems like the new way of doing it is in fact with a bool. Should this be effective for all users of the device though? Can I add that defaults write into our "setup script" and it will be globally applied to any user that logs in?

Our security is not particularly happy about all the .DS_Store files being dropped by all of our Mac users on our network shares.