I downloaded PS script from http://poshcode.org/2216. Whenever I try to run this script, security popup appears: "Run only scripts that you trust. While Scripts from the internet can be usefull, this script can potentially harm your computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning message. (...)".
So I executed Unblock-File .\Send-File.ps1
but nothing changed. I also tried other variations like Get-Content .\SendFile | Unblock-File
. Nothing seems to work.
Does anyone know what is the proper way to unblock PowerShell script? Thanks in advance.