You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Powershell users on Windows can encounter an error when they try to run Zowe CLI with certain execution policies in place.
An example of the error message:
PS C:\> zowe
zowe : File C:\Users\user\AppData\Roaming\npm\zowe.ps1 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:1
+ zowe
+ ~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
To resolve this issue, users will need to either:
Change a setting in "Developer Settings" in Windows 10 settings (I am not sure where they can find this setting in other versions of Windows) to enable running local scripts without signing:
Or, they can run Powershell as an administrator and use the Set-ExecutionPolicy command to change the execution policy to a less-restrictive setting, for example: Set-ExecutionPolicy RemoteSigned -scope CurrentUser.
Description
Powershell users on Windows can encounter an error when they try to run Zowe CLI with certain execution policies in place.
An example of the error message:
To resolve this issue, users will need to either:
Change a setting in "Developer Settings" in Windows 10 settings (I am not sure where they can find this setting in other versions of Windows) to enable running local scripts without signing:
Or, they can run Powershell as an administrator and use the
Set-ExecutionPolicy
command to change the execution policy to a less-restrictive setting, for example:Set-ExecutionPolicy RemoteSigned -scope CurrentUser
.Pages to Update
https://docs.zowe.org/stable/troubleshoot/cli/troubleshoot-cli
Screenshots
Expected behavior
Additional context
The text was updated successfully, but these errors were encountered: