if you want to run the scripts or execute some downloaded scripts, You will end of with the error cannot be loaded because running scripts is disabled on this system.

3

it happens by default,PowerShell is restricted with execution policy.Hence that it is not allowed to execute the PowerShell scripts.

4

You can run the command Set-ExecutionPolicy -ExecutionPolicy Unrestricted to unblock. Wherein you need to have admin privilege to get this enabled. Most of the corporate companies will not provide the admin access to the normal users.

1

In such scenarios, We can go ahead and do it only for the current user which will not ask for admin access to make unrestrcited using the below command

           Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted

2

Refer the Article for more details to know more about the Execution Policy.

#powershell

Author

Leave a comment

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