There two to solve this error :
- Set policy
- By pass the policy
- Set policy
Set-ExecutionPolicy Unrestricted
or
Set-ExecutionPolicy RemoteSigned
Set-ExecutionPolicy RemoteSigned
2. By pass the policy
powershell.exe -ExecutionPolicy ByPass -File script.ps1
No comments:
Post a Comment