Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a firefox imacro script that downloads a xml file from a trusted source. When the file is downloaded we process the file using ssis. Unfortunately we can not do this unless the "unblock" button is clicked in the file properties, next to the message "This file came from another computer and might be blocked to help protect this computer".

My question is how do I write a script to set the attribute to "unblock"? Can someone advise on what is the name of this attibute so I can further research

config info: - win 2003 std R2 -sp2 server.

share|improve this question
up vote 2 down vote accepted

This information is stored in an alternate NTFS stream named Zone.Identifier, attached to the file.

You can view the data inside by, for example, running notepad foo.xml:Zone.Identifier

SysInternals has a tool Streams for removing NTFS streams. Download it and run:

streams -d foo.xml

(Or you can write your own, consisting of a single unlink("foo.xml:Zone.Identifier");)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.