Do we have any script to pull the VMTools version for the set of VM's?
with powershell you can use:
get-vm | Get-View | select Name, @{ Name="VMWareToolVersion"; Expression={$_.config.tools.toolsversion}}
or:
get-vm | Get-VMGuest | select VMName, Toolsversion
with esxcli i would do it similar to (sorry but I dont know the shell syntax):
vim-cmd vmsvc/getallvms | sed '1d' | awk '{print $1}' (to gett all VM IDs)
then for each ID i would do this:
vim-cmd vmsvc/get.config 12 | grep -i toolsversion
with powershell you can use:
get-vm | Get-View | select Name, @{ Name="VMWareToolVersion"; Expression={$_.config.tools.toolsversion}}
or:
get-vm | Get-VMGuest | select VMName, Toolsversion
with esxcli i would do it similar to (sorry but I dont know the shell syntax):
vim-cmd vmsvc/getallvms | sed '1d' | awk '{print $1}' (to gett all VM IDs)
then for each ID i would do this:
vim-cmd vmsvc/get.config 12 | grep -i toolsversion
Hi,
Check below link, script available also you can download the script to pull the vmtools details.
