Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.