Hi all,
I'm trying to create a Powercli to install the same .exe with options to few virtual machines (windows 2012R2)
The script seem worked except the install 😞
1/ Get-credential with administrator privilege ==> OK
$Cred = Get-Credential
2/ Copy the .exe in remote virtual machine ==> OK
Copy-VMGuestFile -VM VMName -Source $Fullpath -Destination $DstPath -LocalToGuest -GuestCredential $Cred -Force
3/ Execute the .exe with option ==> Failed
Invoke-VMScript -VM VMName -ScriptText $Command -GuestCredential $Cred
ScriptOutput
-----
:
------
Nothing installed on the virtual machine
Any idea to debug ?
Thanks for help
OK I found all my errors...
OK I found all my errors...