VMware Cloud Community
prakash9339
Enthusiast
Enthusiast
Jump to solution

script to pull the VMTools version for the set of VM's????

Do we have any script to pull the VMTools version for the set of VM's?

Reply
0 Kudos
1 Solution

Accepted Solutions
brunofernandez1
Jump to solution

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

------------------------------------------------------------------------------- If you found this or any other answer helpful, please consider to award points. (use Correct or Helpful buttons) Regards from Switzerland, B. Fernandez http://vpxa.info/

View solution in original post

Reply
0 Kudos
2 Replies
brunofernandez1
Jump to solution

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

------------------------------------------------------------------------------- If you found this or any other answer helpful, please consider to award points. (use Correct or Helpful buttons) Regards from Switzerland, B. Fernandez http://vpxa.info/
Reply
0 Kudos
Kisan_VMware
Enthusiast
Enthusiast
Jump to solution

Hi,

Check below link, script available also you can download the script to pull the vmtools details.

Script Get-VMWareTools Information

Reply
0 Kudos