Skip to content

Instantly share code, notes, and snippets.

@glombard
Created April 7, 2014 10:11
Show Gist options
  • Save glombard/10017705 to your computer and use it in GitHub Desktop.
Save glombard/10017705 to your computer and use it in GitHub Desktop.
Unblock files downloaded from the internet using streams.exe
if (!(Test-Path "$env:Temp\streams.exe")) {
(new-object System.Net.WebClient).DownloadFile('http://live.sysinternals.com/streams.exe', "$env:Temp\streams.exe")
}
# "Unblock" the files...
& "$env:Temp\streams.exe" @('-d', '*.*')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment