Using PowerShell or PowerCLI to update VMware tools on VMs

We need to first find out what VMs need updating. Run the following command to get the list:

VMware makes it easy to update VMware tools through the console, but clicking through hundreds of VM’s takes too much time. Thankfully VMware has provided us with the Update-Tools cmdlet so we can automate this process.

Here is a PowerShell script to allow admins to update their tools on either individual folders or to the entire environment.


  • Modify $vcenter and enter your vCenter server name between the quotes
  • Run the script in PowerShell (The vSphere PowerCLI must be installed)
  • Enter the folder name you wish to update, otherwise leave this option blank to update all your VM’s
Happy updating!