Admin posted on October 30, 2011 16:38

This might catch some people out:  Downloading a ps1 file from the Internet and tring to execute results in error:

 

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 C:\Downloads\SetupEnterpriseSearch.ps1?

Even with executionpoilcy set to unrestricted you'll get this message, this is because by default these files downloaded are maked as blocked so to unlock simply right click on the script in question and click "unblock".

 


Posted in: PowerShell  Tags:

Comments

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



Calendar

«  May 2012  »
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910
View posts in large calendar

Recent Comments

Banners

Theme Grabber
Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2012 Dan Gibbons .Net Developer