Hi LucD I find some script to access throught SSH to execute update. Before I need to power-off VMs (no VMware Tools) and I'm using the following command:
$VMsArray = @("VM01","VM02","VM03","VM04","VM05","VM06")
foreach ($VM in $VMsArray) {
Stop-VM -kill $VM -Confirm:$false
$checkvm = "PoweredOn"
while ($checkvm -eq "PoweredOn") {
Start-Sleep 2
$checkvm = (get-vm -Name $VM | select Powerstate).PowerState
}
}
but go in loop on first VM.
Thanks