Your comments are welcome

Jun 19, 2009 at 8:05 PM

... yes, they are :-)

Jan 20, 2010 at 3:26 PM
Edited Jan 20, 2010 at 3: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?

Jan 21, 2010 at 9: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