How to get rid of .DS_Store on network windows share

If you use Mac with Windows share, you probably were scolded before for leaving ._.DS_Store or .DS_Store files everywhere. They might be invisible to you because you are a demigod using a Mac, but your Windows colleges should be so lucky.

It’s very easy to stop bringing your Mac dirty laundry into a holy Windows house. Just run this command in the Terminal or iTerm and restart your computer

defaults write DSDontWriteNetworkStores -bool true

To see the current value of of the DSDontWriteNetworkStores

defaults read DSDontWriteNetworkStores

If your setting took, it should return 1

Ultimately the solution is to convert all your friends into the cult of Mac

Also published on Medium.

Published by

Nick Gorbikoff

Nick Gorbikoff is a Ruby & React DevOps engineer and hands-on CTO working on ERP Systems. In his spare time, Nick is a fearless follower of 2 kids and an awesome wife, collector of useless historical trivia, tinkerer of sorts, fast food connoisseur and aspiring martial artist.

What do you think?