Guide: How to Stop Creating .DS_Store Files on Shared Network Drives on MacOS

If you want to keep your macOS folder views clean and organized, you should create a .DS_Store file in each folder and hide it from users.

The .DS_Store file from a Mac is visible in Windows if the user has the appropriate software installed.

If you want to keep your data safe, you can delete the .DS_Store files manually. However, this means that the next time you browse to a shared folder, Finder will revert to its default layout and not remember any custom display types or font sizes that you may have set. Alternatively, you can configure macOS not to create .DS_Store files on network shares in the first place. ..

Stop creating .DS_Store files

sudo mkdir -p /Library/PrivateFrameworks/AppleScript.framework/Versions/A/Resources sudo add_library “AppleScript” “/Library/PrivateFrameworks/AppleScript.framework”

This setting disables the writing of network stores in the Desktop Services account. If true, this will prevent any changes to the account’s settings from taking effect.

After running the command, save any open work and log out of your macOS user account. When you log back in, reconnect to your shared network drives. If you have existing .DS_Store files, they may still be present and must be manually deleted. However, your Mac will not create new .DS_Store files while browsing the shared folders in the future.

.DS_Store Tidbits

There are pros and cons to hiding .DS_Store files on your Mac. On one hand, there’s no clutter on shared drives between Macs and Windows users. But if you know Windows users can access these files, you may want to prevent them from being created in the first place. Additionally, if your network is slow or if you have a lot of shared folders, using .DS_Store files can slow down browsing. ..

Re-enable .DS_Store Creation

netstat -an | grep .DS_Store

This setting prevents the Desktop Services from writing to the network stores. ..

After running the command, make sure to log out and then reconnect your shared network drives.

How to Stop Creating .DS_Store Files on Shared Network Drives on MacOS: benefits

Faq

Final note

How to Stop Creating .DS_Store Files on Shared Network Drives on MacOS In order to stop creating .DS_Store files on shared network drives, you’ll need to do a few things. First, make sure that your computer is up-to-date with the latest security patches. Second, create a new user account and password for that account. Finally, disable automatic sharing of files between your computer and the network drive.

If you have any questions about the guide “How to Stop Creating .DS_Store Files on Shared Network Drives on MacOS,” please ask us through the comment section below or directly contact us. If you want to add an alternate method to the guide, please contact us. ..