adamedx / winbox

Chef recipe for developer workstation for Windows
39 stars 18 forks source link

Windows 10: Script fails with execution policy error #6

Open chefsalim opened 8 years ago

chefsalim commented 8 years ago

Steps:

  1. Clean Win10 setup
  2. Run Powershell as admin
  3. Run IE at least once (to get past IE engine error)
  4. Copy-paste the setup line

Result: PS C:\Windows\system32> . { iwr https://raw.githubusercontent.com/adamedx/winbox/0.1.78/files/default/install.ps1 } | ie x;install-workstation Configuring Windows tools for Chef Development... Configuring ChefDK and other tools... Cloning https://github.com/chef/pantry-chef-repo to C:\Users\salim\Documents\pantry-chef-repo ... iex : File C:\Users\salim\Documents\pantry-chef-repo\bin\pantry.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170. At line:59 char:5

Expected: No failure

jaym commented 8 years ago

Perhaps if we published the script internally and signed it this would go away. Or @adamedx can get a cert. Or perhaps remind people to set the execution policy?