VMware Cloud Community
valot
Enthusiast
Enthusiast
Jump to solution

PowerCLI to install same .exe on few virtual machine

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

0 Kudos
1 Solution

Accepted Solutions
valot
Enthusiast
Enthusiast
Jump to solution

OK I found all my errors...

View solution in original post

0 Kudos
1 Reply
valot
Enthusiast
Enthusiast
Jump to solution

OK I found all my errors...

0 Kudos