PowerShell, Downloaded Scripts, and Alternate Data Streams

First off, here are the sources for this article: http://www.hanselman.com/blog/RemovingSecurityFromDownloadedPowerShellScriptsWithAlternativeDataStreams.aspx http://thepowershellguy.com/blogs/posh/archive/2007/01/27/powershell-accessing-alternative-data-streams-of-files-on-an-ntfs-volume.aspx The long form is that downloaded files have an Alternate Data Streams (ADS) that contains .ini like info about the file’s origin.  The ADS’ name is Zone.Identifier, and if it contains the following, PowerShell will throw up the Security Warning about downloaded script: [ZoneTransfer]ZoneId=3 We…

0