Archive

Archive for February, 2010

Unblock Files Downloaded from the Web

February 8, 2010 Leave a comment

 

How to Unblock Files Downloaded from the Web

Yesterday, I downloaded an msi installer (sandcastle.msi) from the web, but when I double-clicked it, got a strange error message:

Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.


 
That is a verbose error message, but how to fix it?

To run the file, opened a command line and entered
msiexec /i sandcastle.msi
… and it worked.

That was great so far, but what is the reason for popping those messages?

It turned out that the Windows blocks the file as it was downloaded from the web.
In the file properties, message regarding the Security is shown:

This file came from another computer and might be blocked to help protect this computer.

Let’s see a few workarounds for this issue!

Solution #1 – Unblock the File

In the Windows Explorer, right-click the file and select Properties
Check whether you can see the
This file came from another computer and might be blocked to help protect this computer

unblock

Click the Unblock  button.

The drawback is that you need to do it for each of the files already downloaded.

Solution #2 – Use Group Policy Editor – Do not preserve zone information in file attachments

To Set the value, follow the steps below:

  1. Click on Start ->Run
  2. Type gpedit.msc to open the Group Policy Editor.
  3. Open the User Configuration > Administrative Templates > Windows Components > Attachment Manager node.
  4. Double-click the Do Not preserve zone information in file attachments setting.>/li>
  5. Set the value to Enabled.
  6. Close the Group Policy Editor
  7. Log off the current user and re log-in to apply the settings.

As an alternative option, you can refresh the group policy by entering gpupdate/force to the command line.

Advertisements
Categories: Uncategorized Tags: ,