How to Stop Your Mac From Creating .DS_Store Files on Windows PCs

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.

windows explorer with an arrow pointing to a .ds_store file

  1. 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

    the macOS Terminal

  1. 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 :)
  2. That’s it!

Leave a Comment

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