The problem here is with "Get-ExecutionPolicy" value is Restricted. We have to change it to Unrestricted
Step 1
Open Windows PowerShell with Run As Administrator
Step 2
Execute the following command
Get-ExecutionPolicy
The result you will see is Restricted
Step 3
Execute the following command
Set-ExecutionPolicy Unrestricted
Top comments (2)
Yes, but actually no. It might not work in your workstation. Depends on the policy of your domain.
I agree, but this can be one of the solutions.