-
Notifications
You must be signed in to change notification settings - Fork 5
ds_store_disable_macos.sh
Corey Watson edited this page Dec 1, 2025
·
1 revision
Prevents macOS from creating .DS_Store files on network shares.
This script disables the creation of .DS_Store files on network-mounted volumes. These files contain folder metadata and can clutter network drives, especially on mixed OS environments.
Prevents macOS from creating .DS_Store files on network shares. These files contain folder metadata and can clutter network drives.
- macOS
- No special privileges required
None
Sets DSDontWriteNetworkStores to true in com.apple.desktopservices preferences. This prevents macOS from creating .DS_Store files when browsing network-mounted volumes.
Note: Requires logout/login or reboot to take effect.
- No special privileges required
- Only modifies user preferences
- No sensitive information logged
- 0 = Success
- 1 = Failure
[ DISABLE .DS_STORE ON NETWORK SHARES ]
--------------------------------------------------------------
Setting applied: DSDontWriteNetworkStores = true
NOTE: Log out and back in (or reboot) for changes to take effect.
[ SCRIPT COMPLETED ]
--------------------------------------------------------------
- v1.0.0 (2024-12-01) - Initial release - migrated from SuperOps
- View Script Source
- Scripts - Back to script index