chef-workstation icon indicating copy to clipboard operation
chef-workstation copied to clipboard

CW PS link produces powershell error

Open tas50 opened this issue 4 years ago • 1 comments

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>

tas50 avatar Dec 06 '19 23:12 tas50

Error is still exist Windows 11

DmitryShipovalov avatar Apr 02 '23 09:04 DmitryShipovalov