Home > Windows > This file came from another computer and might be blocked to help protect this computer

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

Recently I encountered the following situation while trying to install php in IIS. After downloading and extracting the php files to “C:\Program Files(x86)\PHP”, I saw that all the files and folders inside that directory was blocked due to some inherent group policy settings.

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

In order to solve this issue I downloaded the “streams” utility from sysinternals website and copied the “streams” binary to “C:\Windows“. You can copy the binary to any other directory which is included in the PATH environment variable(it can be viewed using “echo %PATH%“).

streams” binary provides two switches “-s” (for recursive action) and “-d” (for deleting streams). The details is provided below. After changing directory to “C:\Program Files(x86)\PHP” I ran “streams -d -s *” to remove the block from all files and folders inside the PHP directory.


C:\Program Files (x86)\PHP>streams

Streams v1.56 - Enumerate alternate NTFS data streams
Copyright (C) 1999-2007 Mark Russinovich
Sysinternals - http://www.sysinternals.com

usage: streams [-s] [-d]
-s Recurse subdirectories
-d Delete streams

C:\Program Files (x86)\PHP>streams -d -s *

Streams v1.56 - Enumerate alternate NTFS data streams
Copyright (C) 1999-2007 Mark Russinovich
Sysinternals - http://www.sysinternals.com

C:\Program Files (x86)\PHP_TEST\dev\php5ts.lib:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_bz2.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_curl.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_enchant.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_exif.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_fileinfo.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_gd2.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_gettext.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_gmp.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_imap.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_interbase.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_intl.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_ldap.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_mbstring.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_mysql.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_mysqli.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_oci8.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_oci8_11g.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_openssl.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_pdo_firebird.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_pdo_mysql.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_pdo_oci.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_pdo_odbc.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_pdo_pgsql.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_pdo_sqlite.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_pgsql.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_shmop.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_snmp.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_soap.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_sockets.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_sqlite.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_sqlite3.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_sybase_ct.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_tidy.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_xmlrpc.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP_TEST\ext\php_xsl.dll:
Deleted :Zone.Identifier:$DATA
C:\Program Files (x86)\PHP>

The reason for this blocking issue is that the “Do not preserve zone information in file attachments” setting was disabled. Details of this feature as collected from windows help is pasted below,

This policy setting allows you to manage whether Windows marks file attachments with information about their zone of origin (i.e. restricted, Internet, intranet, local). This requires NTFS in order to function correctly, and will fail without notice on FAT32. By not preserving the zone information Windows cannot make proper risk assessments.

If you enable this policy setting Windows does not mark file attachments with their zone information.

If you disable this policy setting Windows marks file attachments with their zone information.

If you do not configure this policy setting Windows marks file attachments with their zone information.

To solve this issue for future downloads follow the steps mentioned below,

Step 1) Take run and type “gpedit.msc”
Take run prompt and type "gpedit.msc"

Step 2) In group policy editor choose “User configuration”

Step 3) Under “User configuration” choose “Administrative Templates”

Step 4) Under “Administrative Templates” choose “Windows Components”

Step 5) Under “Windows Components” choose “Attachment Manager”

Step 6) Double click the setting “Do not preserve zone information in file attachments” and “enable” it and then click “Apply”.

From now onwards the newly downloaded files won’t be blocked by default. Hope this might help someone:)

Advertisements
Categories: Windows
  1. Simon F. Gilmour
    July 17, 2012 at 1:23 pm

    This issue arose for me with respect to downloads after a IE auto-update.

    I was getting a pop-up “Your current security settings do not allow this action” whenever I double-clicked on the files.

    I was lucky to discover the Unblock option, because at first even right-clicking on the affected files – in my case a couple Zip files downloaded with IE8 – was blocked.

    Your info about Policy editing was most useful and the best I have found so far.

    I have edited my Policy settings as per your advice – let hope it works

    Thank-you

  2. omair
    December 30, 2012 at 8:58 am

    under windows components there is no “Attachment Manager” only “wmp” and “wupdate”
    plz reply thnx

  3. jesus
    May 11, 2013 at 5:30 pm

    Unfortunately windows 7 home premium and windows 8 do not have the group policy editor,I cant find where to download it and I also tried streams but it doesnt work

  4. Tariq
    October 22, 2013 at 5:38 am

    windows 8 has not the group policy editor, can anyone have know the solution for windows 8?? Thanks in advance

  5. Mariya Cruz
    April 29, 2015 at 7:09 am

    Resolve the security issue using the free Unblocker utility, http://www.systoolsgroup.com/unblocker/

  6. Maria
    November 10, 2016 at 11:17 am

    Thanks for your help.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: