Skip to the content.

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

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


Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

to check the result just enter :


or :

Get-ExecutionPolicy -List

or :

Get-ExecutionPolicy -Scope CurrentUser