How to batch 'NTFS unblock' internet downloads

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

How to batch 'NTFS unblock' internet downloads

Post by *MaxX »

Image
http://winitpro.ru/wp-content/uploads/2015/03/unblock-site.jpg
I have some hundreds of downloaded files.
It's stupid to uncheck the state for each file manually.
How can I do this for some files/dirs via TC?
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Search the forum for 'unblock'

Results:
Find 'blocked' download files? (ADS 'Zone.Identifier')
how can unblockseveral files with total commander ?
http://ghisler.ch/board/viewtopic.php?p=302187#302187







 
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2Stefan2
I can't use powershell in some cases due to secutiry politics.
Any another ideas?
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

unblock downloaded files ADS Zone.Identifier:$DATA 26

Post by *Stefan2 »

MaxX wrote:I can't use powershell in some cases due to secutiry politics.
What does that means? Blocked by company policies? Otherwise you can use PoSh always, you just have to enable script execution first.
MaxX wrote:Any another ideas?
As already mentioned in the other threads, use Sysinternal 'Streams.exe'

Do you have considered that?
That also needs admin rights.

https://technet.microsoft.com/en-us/sysinternals/bb897440
http://www.winhelponline.com/blog/bulk-unblock-files-downloaded-internet/
https://darrenmyher.com/2007/03/22/how-to-permanently-unblock-files-that-came-from-the-internet-sysinternals-streams-utility-zones-vista-and-blocked-files-in-ie/
http://thehunk.blogspot.de/2012/04/stop-having-to-click-unblock-on-every.html



 
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: unblock downloaded files ADS Zone.Identifier:$DATA 26

Post by *MaxX »

Stefan2 wrote:Blocked by company policies?
Yes.
Stefan2 wrote:you just have to enable script execution first.
No rights, blocked too.
Stefan2 wrote:As already mentioned in the other threads, use Sysinternal 'Streams.exe'
I'll try it.
Stefan2 wrote:That also needs admin rights.
Why?
Explorer does not need them to unblock.
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

Heh, only Streams.exe works fine:

Code: Select all

TOTALCMD#BAR#DATA
%ComSpec% /k
?"c:\Portables\SYSINT~1\streams.exe -s -d "%P\*.*""
shell32.dll,152
Streams


-1
But how can I unlock only selected files (not all of them in folder)?
User avatar
Ovg
Power Member
Power Member
Posts: 756
Joined: 2014-01-06, 16:26 UTC

Post by *Ovg »

change "%P\*.*" to %P%S

Look for more options in Help (Dialog box: Configuration - Change button bar)
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: unblock downloaded files ADS Zone.Identifier:$DATA 26

Post by *Stefan2 »

MaxX wrote:
Stefan2 wrote:Blocked by company policies?
Yes.
Stefan2 wrote:you just have to enable script execution first.
No rights, blocked too.
Just for an test, would you please try this script from user ZoSTeR but with '-ExecutionPolicy Bypass ' parameter :


CMD: PowerShell -ExecutionPolicy Bypass
PARAM: -noexit -command "& {Get-Content -Path '%WL' | Foreach-Object {Unblock-File -LiteralPath $_}}"

-OR-

CMD: PowerShell -NoProfile -ExecutionPolicy Bypass
PARAM: -noexit -command "& {Get-Content -Path '%WL' | Foreach-Object {Unblock-File -LiteralPath $_}}"



Maybe remove the "-noexit" part after testing, if you want to keep that command.




 
Post Reply