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

Designing and Configuring an Enterprise Cloud Solution

"Host IPMI system event log status" alarm in vCenter Server

Virtual machines appear as invalid or orphaned in vCenter Server