What are `Zone.Identifier` files, and how do I prevent them from being created?

WindowsFile IoFilesystemsSmbNetwork Drive

Windows Problem Overview


I often see files named 'blabla.exe:Zone.Identifier' when monitoring I/O with Process Monitor.
The files are seen on network-drives.

alt text

  • What are Zone.Identifier files?

  • What does the colon mean in the filename?

  • Is the colon related the file's extended attributes?

  • How do I prevent these files from being created when I copy code files from Windows Explorer to a WSL directory?

Windows Solutions


Solution 1 - Windows

The text after the colon is an identifier for an "Alternate Data Stream". ADS is used to store meta-information about the file. For example, the Zone identifier stores whether the file was downloaded from the internet.

Some specific info: About URL Security Zones, Zone.Identifier Stream Name

Best is to google around for more information. Eg. this, this and this.

Finally, here's Streams, the Sysinternals tool for ADS.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBenjaminView Question on Stackoverflow
Solution 1 - WindowsZabbaView Answer on Stackoverflow