116

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?
Andrew Koster
  • 1,550
  • 1
  • 21
  • 31
Benjamin
  • 10,085
  • 19
  • 80
  • 130
  • 2
    The only way that I found to deal with these annoying "ZoneIdentifier" files was by creating an alias `alias rzi="rm -rf **/*Zone.Identifier"` and running it right before copy files. The other good one was adding `**/*Zone.Identifier` on the `.gitignore` file of my projects. – equiman May 13 '22 at 00:33
  • 2
    To remove them (ubuntu): `find . -name "*Zone.Identifier" -type f -delete` – Murat Ozgul Oct 02 '22 at 13:50

1 Answers1

77

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

See also Technet, Heysoft and this article about alternative data streams.

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

mikemaccana
  • 110,530
  • 99
  • 389
  • 494
Zabba
  • 64,285
  • 47
  • 179
  • 207
  • 14
    Just the answer I was looking for! But allow me to publicize a good question from another Stack Exchange site: [Why shouldn't we use words such as 'here' and 'this' in textlinks?](http://ux.stackexchange.com/questions/12100) – hippietrail Dec 09 '12 at 03:00
  • 13
    To remove problem on Windows side you need to configure it properly. Run gpedit.msc (Win + R) and go to User configuration > Administrative templates >Windows Components > Attachment Manager and set Do not preserve zone information in file attachments. (to run gpedit.msc you’ll need Windows Professional) -- found here: https://blog.realhe.ro/how-to-get-rid-of-zone-identifier-files/ – mtness Jun 28 '22 at 07:54
  • Apart from not saving the file, is something else happening ? – funder7 Sep 09 '22 at 19:52
  • @mtness That's worth posting a separate answer. If you do post one (like if there's an open question on Server Fault or something), I'll upvote. Here's a direct link to the [policy documentation](https://gpsearch.azurewebsites.net/Default.aspx?PolicyID=26). – mbomb007 Nov 17 '22 at 20:26
  • 1
    @mbomb007 I would, if I could, but this question here is closed as off-topic^^ I'll eventually have a look at the other sites, though. – mtness Dec 12 '22 at 13:16