IT_pilot
Expert
Expert

Nighthawkz

another way (across Get-VM)

$spec = New-Object -Type VMware.Vim.VirtualMachineConfigSpec 

$spec.Tools = New-Object -Type VMware.Vim.ToolsConfigInfo 

$spec.Tools.ToolsUpgradePolicy = "UpgradeAtPowerCycle" 
Then, set the policy only for Windows VM

Get-VM | Where {$_.guest.guestFamily -eq ‘windowsGuest’} | ForEach-Object {$_.ExtensionData.ReconfigVM_Task($spec)}

http://it-pilot.ru