Hi,
Is there a way to upgrade VMware Tools on multiple linux VMs using powercli
As per the VMware document, I see we can right click on the VM and click on upgrade vmware tools by passing --default parameter to linux VM.
Is this can be achieved by PowerCLI ?
Please help
You have two options nowadays.
The commands for 1) and 2) can be run inside the guest OS via the Invoke-VMScript cmdlet.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Yes, we do provided powerCLI script to achieve that, regardless of OS type, see "Invoke-VMToolsUpgradeInVMs “ in PowerCLI-Example-Scripts/VMToolsManagement.psm1 at master · vmware/PowerCLI-Example-Scripts · GitHub
Be aware that LinuxOS should have tartools preinstalled.
Br
Yike
Afaik that will not work for the open VMware Tools (open-vm-tools)
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
So I guess the Option #2 can be automated in this script: PowerCLI-Example-Scripts/VMToolsManagement.psm1 at master · vmware/PowerCLI-Example-Scripts · GitHub ?
Although I have not a lot of practical experience with that module, the Invoke-VMToolsUpgradeInVMs function in that module should do the trick.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference