> ## Content Index
> Fetch the complete content index at: https://www.bagz.fr/llms.txt
> Use this file to discover other available public pages before exploring further.

# MacOS - Prevent the automatic creation of a .DS_Store file on network drives
- URL: https://www.bagz.fr/macos-prevent-the-automatic-creation-of-a-ds_store-file-on-network-drives/
- Published: 2019-09-27T14:28:18.000Z
- Updated: 2019-09-27T14:28:18.000Z
- Author: bgazui
- Tags: MacOS, #Migrated-1790668826633, #wp, #wp-post, #Import 2026-09-29 08:00

Mac OS X is automatically creating .DS\_Store file as soon as you're working on some network drives. This is used to store some custom attributes.

If you want to prevent the OS to create those files automatically, follow the steps below:

- Open up a Terminal
- Run this command  
`defaults write com.apple.desktopservices DSDontWriteNetworkStores true`
- Restart your Mac

Once this is executed, the DS\_Store files will only be created on local drives.