adamedx / winbox

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

Pass -UseBasicParsing to iwr #20

Closed jaym closed 8 years ago

jaym commented 8 years ago

Without a fresh windows 10 box errors with

iex : File C:\Users\jdmun\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
+     iex "& '$dest\bin\pantry.ps1' -runchef"
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [Invoke-Expression], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.PowerShell.Commands.InvokeExpressionCommand

Seems like it wants me to run Internet Explorer. That's annoying, but passing -UseBasicParsing fixes this.

Fixes #5

adamedx commented 8 years ago

why not just run IE?

jaym commented 8 years ago

I'm fairly certain it would actually kill me