Hi Folks,
Encountered a problem executing Powershell scripts from Hudson CI server using the Powershell Plugin. I'm running:
- Hudson v1.362
 - Windows 2003
 - Powershell 1.0
 
I am trying to use the Powershell plugin for Hudson. Anything I try just gives me:
File C:\DOCUME~1\SVC_PR~1\LOCALS~1\Temp\hudson2144883754471568213.ps1  
  cannot be loaded because the execution of scripts is disabled on this system.
I have set the ExecutionPolicy as "Unrestricted" but still I get the same message in Hudson.
- Tried restarting Hudson - didn't solve it.
 - Tried putting "
Set-ExecutionPolicy Unrestricted" in the Powershell profile of the account running Hudson, that only succeeded in giving me the above message twice instead of once (oh the irony) - Tried issuing from the command-line "
Powershell -ExecutionPolicy Unrestricted".
That returned error: "Missing expression after unary operator '-'. At line:1 char:2 + -ExecutionPolicy Unrestricted" - I assume because I am using Powershell 1 and-ExecutionPolicyis not a v1 option. 
So I'm stuck. Any advice as to how to get Hudson to run Powershell scripts using this Poweshell plugin would be most welcome.
Thanks
Jamie