List all virtual machines and their version of VMTools:



# List all virtual machines and their version of VMTools:

Connect-VIServer MYVISERVER

$VMTools = @()
Foreach ($VM in (Get-VM)){
  $MyDetails = "" | Select-Object Name, Tools
  $MyDetails.Name = $vm.Name
  $MyDetails.Tools = $vm.config.tools.toolsVersion
  $VMTools += $MyDetails
}
$VMTools

Comments

Popular posts from this blog

esxi-host-shows-disconnected-vmware

ESXi : Lost uplink redundancy on virtual switch "vSwitch0". Physical NIC vmnic0 is down

Virtual machines appear as invalid or orphaned in vCenter Server