Solved

Problems with the File blocking Feature

Posted on 2013-06-28
7
373 Views
Last Modified: 2013-07-02
We all know the 'feature' in Windows which marks files as blocked when saved from for instance an internet location to the local disk. The file is marked as blocked as noted by the message "This file came from another computer and might be blocked to help protect this computer".

There are ways of preventing this, by means of a GPO setting to force to skip this feature. This setting however works at the user level.

We came across this scenario:
Windows 2003 file server in a simple network environment, XP clients and a Windows 2003 Terminal Server. On the network a Document Scanner is attached, from which the people create PDF documents to be saved directly to a SMB path on the file server.
This PDF files are marked as blocked...

Does anyone have a solution as how to prevent this?
0
Comment
Question by:ArchiLogiQ
  • 3
  • 3
7 Comments
 
LVL 80

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 167 total points
ID: 39286099
you can't prevent it but you can remove the blocking using sysinternals streams to remove the stream information
0
 
LVL 25

Assisted Solution

by:Coralon
Coralon earned 333 total points
ID: 39286165
Ve3ofa is exactly correct.  The easiest thing to do is probably set up a script that runs streams.exe against that particular directory on a regular basis.  (I would think once every 5 minutes, or even every minute).. You could even use sc.exe to turn it into a service, you could install powershell and have it check to see if the file count changes, etc.

But, to use streams it would be
streams -d -s <directorypath>

Open in new window


-d delete the alternate stream data
-s include subdirectories

Coralon
0
 

Author Comment

by:ArchiLogiQ
ID: 39289147
Thank you for the responses. I am familiar with the utils for deleting the streams.
If scheduling either of these is the only option, I will try this.
I will report back how it goes.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:ArchiLogiQ
ID: 39290157
I am having trouble getting the streams util to function properly. On several files I get a "Access is denied" message and on other "The system cannot find the path specified".
The latter is probably due to long file names, the first I cannot explain.

Any suggestions?
This is Windows Server 2003, so no option to 'Run as Administrator'.
0
 
LVL 25

Accepted Solution

by:
Coralon earned 333 total points
ID: 39292086
Just go into the directory you want to run it on, or you can substitute a drive.. especially if you have a long path..

subst j: d:\<really long path>
cd /d j:
streams -d -accepteula -s *
cd /d c:
subst j: /d

Open in new window


Coralon
0
 

Author Comment

by:ArchiLogiQ
ID: 39292330
I found out that the "Access is Denied" message is due to the Read only attribute of the particular file.
Besides using subst for shortening long file paths, I will work on a script that will encorporate both options. This should bring to a solution.

Thanks for the input.
0
 
LVL 25

Expert Comment

by:Coralon
ID: 39295375
Absolutely..

and for what it's worth.. (I have done this before)

subst j: d:\<really long path>
cd /d j:
attrib -s -h -r *
streams -d -accepteula -s *
cd /d c:
subst j: /d 

Open in new window


Coralon
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question