Cannot run PowerShell scripts you have downloaded?

I have a few emails from customers because they have not been able to run PowerShell scripts that they have downloaded from the Internet; csv_parser.ps1 is an example.

What is happening here is that when you download the file, your browser (IE, Firefox) can mark the file as unsafe as it comes from that shady place known as the Internet.  If you trust the source however, there are a number of things you can do to get the file working again:

  1. Right click the file in question, select ‘Properties’ and on the General tab you will see some text “This file came from another computer and might be blocked to help protect this computer.”  You can choose to unblock the file, and then it will run normally.
  2. Open the file, and copy/paste the contents into a new file with a new name…the file will then run normally.

Hope that helps!

Jonny

Technorati Tags: ,
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: