Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ExecutionPolicy issue preventing access to Package Manager Console in VS

I am attempting to access the Package Manager Console in my VS 2013 but I am getting the following:

Windows PowerShell updated your execution policy successfully, but the setting is overridden by a policy defined at a more specific scope. Due to the override, your shell will retain its current effective execution policy of Unrestricted. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more information please see "Get-Help Set-ExecutionPolicy".

I tried Google and did a couple of things then restarted my VS, but nothing: same issue!

Why is this happening and how can I fix it so that I can access the Package Manager Console? Right now when I run Get-ExecutionPolicy -List I get the following:

Scope             ExecutionPolicy
-----             --------
MachinePolicy     Unrestricted
UserPolicy        Undefined
Process           RemoteSigned
CurrentUser       RemoteSigned
LocalMachine      RemoteSigned
like image 923
J86 Avatar asked Jul 27 '15 09:07

J86


2 Answers

It turned out I had some pending updates for NuGet Package Manager and PowerShell Addon for VS. Once I installed those and restarted my PC. All was good!

like image 110
J86 Avatar answered Oct 06 '22 20:10

J86


I installed this hotfix (I use VS 2013 and Windows 8.1) and it fixed this exact problem for me (make sure to get the correct version for your IDE):

NuGet downloads

like image 32
bcr Avatar answered Oct 06 '22 19:10

bcr