Windows PowerShell

Gandalf

Distinguished
Dec 12, 2009
1,303
0
19,460
In exploring my Windows 7 Ultimate, I found Start > Administrative Tools > Windows PowerShell Modules.
Upon activating the link, the following appeared in a window:

Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.

WARNING: File C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSDiagnostics\PSDiagnostics.psm1 cannot be loaded
because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
PS C:\Users\Gandalf>

In searching for "get-help about_signing" I found this on the net...
http://www.proudlyserving.com/about_signing.htm
but the language is a little out of my league.

Can someone please tell me in simple English how to resolve the above WARNING.
ie. how to enable "execution of scripts".

Thanks


 
Solution
That link is fairly old, and doesn't seem to work nowadays. Have a look here instead.

The short answer is to type

Set-ExecutionPolicy Unrestricted

inot a PowerShell prompt (but you may want to look at the other security levels).

warezme

Distinguished
Dec 18, 2006
2,450
56
19,890
This error is most likely related to Internet Explorer 8 blocking script extensions or a setting within Windows Defender or a third party firewall.

All the message is really saying is, I can't run this script because it is now allowed.

Google how to enable execution of scripts in Windows 7
 

zander1983

Distinguished
Mar 26, 2009
424
1
18,860



Thanks, issue solved!
 

gregoryy2k

Honorable
Jul 31, 2012
1
0
10,510



This is the solution to the question. Thanks.

I always read up on any changes in Policy, like Google ExecutionPolicy. To feel conformable and understand what you just changed.

Although I have a recent CS degree, these operating systems have complicated and intertwined.