The below script installs vmtools on Vms by using a csv file and it prevents the reboot. The installation for the VMs will start at the same time (not one by one)
#Connect to vcenter server
connect-viserver <YourVCenterIPAddress>
Import-Csv deploy.csv |
foreach {
$strNewVMName = $_.name
#Update VMtools without reboot
Get-Cluster <YourClusterName> | Get-VM $strNewVMName | Update-Tools -NoReboot -RunAsync
write-host "WmTools Update Initiated $strNewVMName"
}
deploy.csv:
name
vm1
vm2
vm3
vm4