Open chefsalim opened 8 years ago
Steps:
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
- CategoryInfo : SecurityError: (:) [Invoke-Expression], PSSecurityException - FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.PowerShell.Commands.InvokeExpressionCommand
Expected: No failure
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?
Steps:
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