Each time your Mac connects to a Windows computer, it leaves something behind – a .DS_Store file. This very short guide will show you how to stop that from happening.
- Open a Terminal by navigating to Applications -> Utilities -> Terminal. Copy and paste the command displayed below into your Terminal and hit enter.
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
- Now just sign out of your Mac and back in again (or restart your Mac). From now on when you connect to Windows drives you won’t leave a .DS_Store file behind :)
- That’s it!