Solving EntityFramework install.ps1 cannot be loaded because running scripts is disabled on this system

while I was installing EntityFramework.6.2.0 through nuget by executing :


Install-Package EntityFramework -Version 6.2.0

I faced the error like this :


File C:\...\EntityFramework.6.2.0\tools\install.ps1 cannot be loaded because running scripts is 

disabled on this system. For more information, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170.

At line:1 char:3

+ & 'C:\...\TestEntityFramework\pa ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo          : SecurityError: (:) [], PSSecurityException

+ FullyQualifiedErrorId : UnauthorizedAccess




I followed the pointed URL and found the solution by executing  :


Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

or :

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser


to check the result just enter :


Get-ExecutionPolicy

or :

Get-ExecutionPolicy -List

or :

Get-ExecutionPolicy -Scope CurrentUser