Your comments are welcome

Coordinator
Jun 19, 2009 at 7:05 PM

... yes, they are :-)

Jan 20, 2010 at 2:26 PM
Edited Jan 20, 2010 at 2:26 PM

Hi. I can´t get the script to work. When I run the script in PowerShell I get this error:

PS C:\Script\HVCMD> .\hvcmd.ps1 pause VirtualMachine
File C:\Script\HVCMD\hvcmd.ps1 cannot be loaded. The file C:\Script\HVCMD\hvcmd.ps1 is not digitally signed. The script
 will not execute on the system. Please see "get-help about_signing" for more details..
At line:1 char:12
+ .\hvcmd.ps1 <<<<  pause decapus
    + CategoryInfo          : NotSpecified: (:) [], PSSecurityException
    + FullyQualifiedErrorId : RuntimeException

What is wrong?

Coordinator
Jan 21, 2010 at 8:16 AM

You have to allow the execution of non digitaly signed scripts. There are several posibilities to do this.
The PS-Command for allwoing all unsigned Scripts:

Set-ExecutionPolicy Unrestriced

http://technet.microsoft.com/en-us/library/dd347628.aspx