Wednesday, September 26, 2012

powershell security warning

Microsoft being helpful again...

Security Warning
Run only scripts that you trust. While scripts from the Internet can be useful, this script can potentially harm your computer. Do you want to run <script>?
[D] Do not run [R] Run once [S] Suspend (default is "D"):

I thought this was related to the file path that was in the script so I started going down the path of disabling UNC Paths... this wasn't the issue.

  • Right-click the ps1 file and choose properties
  • Hey, hey! There's this obnoxious Security bit here at the bottom of the General tab:
    • This file came from another computer and might be blocked to help protect this computer. [Unblock]
    • Click Unblock
  • OK
  • Get back to work

No comments:

Post a Comment