We occasionally receive requests from customers regarding the management of .DS_Store files. The primary reason for this is that by default, macOS computers do not request these files have the hidden attribute set, since on macOS the default setting is that files that begin with a . (dot) are not visible when browsing.
However, this is not the case on Windows, so Windows computers accessing the same directories on the server will see the .DS_Store files when browsing. You can read about what these files do at http://en.wikipedia.org/wiki/.DS_Store
If one were to use the Windows Server File Server Resource Manager File Screening feature to block the creation of .DS_Store files, copies of folders containing a .DS_Store file would fail.
The reason for this is when an macOS computer starts to copy a folder that contains a .DS_Store file, the .DS_Store file is usually the first file that the Finder will try to copy and when that file copy is blocked and that failure returned to the macOS computer, the Finder will halt the entire copy job.
Apple has published a knowledge base article about how to configure macOS to not request the creation of .DS_Store file on a network share. This article is at
Mac OS X v10.4 and later: How to prevent .DS_Store file creation over network connections
This article is marked "Archived", but in this case, it still applies.