I believe that you should run Visual Studio as an administrator.
In the package manager console, you can check the Powershell execution policy. Enter "get-executionpolicy". By default, it will be a value of type "RemoteSigned". MvcScaffolding is signed, so it will work under this policy.
Here is the URL with additional information: http://technet.microsoft.com/en-us/library/dd347649.aspx
and various execution policies are described here: http://technet.microsoft.com/en-us/library/dd347628.aspx
Here is an excerpt from the torm of the first link: If you try to run the loaded script, Windows PowerShell will display the following error message:
The file <file-name> cannot be loaded. The file <file-name> is not digitally signed. The script will not execute on the system. Please see "Get-Help about_signing" for more details. Before you run the script, review the code to be sure that you trust it. Scripts have the same effect as any executable program. To run an unsigned script: 1. Save the script file on your computer. 2. Click Start, click My Computer, and locate the saved script file. 3. Right-click the script file, and then click Properties. 4. Click Unblock. If a script that was downloaded from the Internet is digitally signed, but you have not yet chosen to trust its publisher, Windows PowerShell displays the following message: Do you want to run software from this untrusted publisher? The file <file-name> is published by CN=<publisher-name>. This publisher is not trusted on your system. Only run scripts from trusted publishers. [V] Never run [D] Do not run [R] Run once [A] Always run [?] Help (default is "D"): If you trust the publisher, select "Run once" or "Always run." If you do not trust the publisher, select either "Never run" or "Do not run." If you select "Never run" or "Always run," Windows PowerShell will not prompt you again for this publisher.
Hope this helps.
Beans source share