pssecurityexception unauthorized access – Set-ExecutionPolicy

When I try to use Azure Powershell, I see that it does not run with a pssecurity exception error. This can be resolved by changing the security settings.


First, the command to check the currently set value is Get-ExecutionPolicy.


To execute the Azure power cell command, set ExecutionPolicy to RemoteSigned by using Set-ExecutionPolicy and configure to enable remote authentication.

As shown in the figure below, you can run Azure Power Cell by executing the power cell and changing it by remote authentication.


Facebook Comments

Leave A Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.