If I try to start a Hyper-V VM with a powershell script all i get is:
Could not load file or assembly 'TraceWrapper, Version=1.0.523.0, Culture=neutr
al, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. An attempt was
made to load a program with an incorrect format.
The script looks like this:
Import-Module "C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\psModules\virtualmachinemanager\virtualmachinemanager.psd1";
Get-VMMServer "hades"
$VM = Get-SCVirtualMachine -Name "Windows Server 2008 R2"
Start-SCVirtualMachine -VM $VM
Why does Jenkins fail with this script? if i execute it in a normal powershell, started as admin and also non admin, it works just fine.
Greetings
Matthias