chef-workstation
chef-workstation copied to clipboard
CW PS link produces powershell error
On Workstation 0.12 I get the following error when launching the workstation powershell console on my corp locked down Windows 10 box:
Import-Module : File C:\opscode\chef-workstation\modules\chef\chef.psm1 cannot be loaded because running scripts is disabled on this system. For more
information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:133
+ ... l | out-string | iex; Import-Module chef -DisableNameChecking;echo 'P ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [Import-Module], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.PowerShell.Commands.ImportModuleCommand
PowerShell 5.1.17763.316 (Microsoft Windows NT 10.0.17763.0)
Ohai, welcome to Chef Workstation!
PS C:\windows\system32>
Error is still exist Windows 11