Hi Luc ,
i tested your code on one of the vms.
$vms="vm1"
$do = New-Object -TypeName VMware.Vim.VirtualMachineConfigSpec
$do.Tools = New-Object VMware.Vim.ToolsConfigInfo
$do.Tools.ToolsUpgradePolicy = "UpgradeAtPowerCycle"
Get-VM $vms |
ForEach-Object -Process {
$_.ExtensionData.ReconfigVM_Task($do)
}
after that i run
Restart-VMGuest -VM $vms
it worked fine however there was messageon console to reboot system for upgrade to take place .i belive that came from restart-vmguest command not from the reconfiguration task
