Stop Finder from writing .DS_Store files on Network Drives!
May 10, 2025โข40 words
By default, finder does this to store your view (and potentially other) settings in directories you browse to.
To stop it from doing this for network drives, execute the following:
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
killall Finder