Pagine

Powershell - Cannot be loaded because the execution of scripts is disabled on this system

If you get this error executing powershell script .ps1 you need to:

Launch this command to see actual settings:

Get-executionpolicy

If you get Restricted you need to launch this command:

Set-ExecutionPolicy Unrestricted

For security reason it should be done rollback to this setting:

Set-ExecutionPolicy Restricted