Error : file .ps1 cannot be loaded because the execution of scripts is disabled on this system

During execution of  powershell script you may face the error "File .......ps1 cannot be loaded because the execution of scripts is disabled on this system."

This is because the script execution is by default disable. You will have to enable it to execute the powershell scripts.

To enable the script execution run following commandlet on powershell.

Set-ExecutionPolicy Unrestricted

OR

Set-ExecutionPolicy Unrestricted -Force

For more information please refer the here Running Windows PowerShell Scripts.

Comments

Popular posts from this blog

How to boot Samsung Galaxy SL( GT-I9003) in recovery mode

How to flash CWM Recovery to Samsung Galaxy SL( GT-I9003) using Odin

How to Factory Reset or Hard Reset Samsung Galaxy SII ( GT-i9100)