Thursday, 23 July 2009

“Unblock” files in Vista / Windows Explorer. Got very bored of this

As I don’t download dodgy things or go on dodgy websites, I got bored with having to unblock files which come from an “untrusted” source.

This happens because, by default, vista stored where a file came from in a separate file stream. To disable…

  1. Run GPEDIT.MSC to launch the “Group Policy” editor.
  2. Go to “User Config” –> “Administrative Templates” –> “Windows Components” –> “Attachment Manager”.
  3. Enable the "Do not preserve zone information in file attachments" policy.

My main problem was that I have .net assemblies which originate from component providers, which are ‘untrusted’ by Vista.  This would mean some of my TDD unit tests would fail in Visual Studio.  Even though I unblocked all of the files, somehow, it would continue block them again after a while.