Kevin, a.k.a the OCSGuy posted on his blog one very cool utility. When I saw it, my first thought was “This is awesome” and the second – “How come I did not come with this idea earlier…” Well, we have it now, thanks to his wiliness to share.
The GUI utility is based on Powershell script. By default, PS Execution policy is set to “Restricted” i.e., no scripts can be run. To see the current execution policy, run “Get-ExecutionPolicy”. To allow the script to be executed, run “Set-ExecutionPolicy unrestricted”. When you’re done, set back the Execution Policy to the recommended level – “Set-ExecutionPolicy restricted”.
Another possibility is to sign the script. Information how to do so can be found here: http://blogs.technet.com/b/heyscriptingguy/archive/2010/06/16/hey-scripting-guy-how-can-i-sign-windows-powershell-scripts-with-an-enterprise-windows-pki-part-1-of-2.aspx and part two here: http://blogs.technet.com/b/heyscriptingguy/archive/2010/06/17/hey-scripting-guy-how-can-i-sign-windows-powershell-scripts-with-an-enterprise-windows-pki-part-2-of-2.aspx
Thanks again, Kev!