Categories: PowerCLI

Script to List Virtual Machine HW ,VM Tools Version , Tools Status

Below Script will get  virtualmachine hardware version , tools version , Tools status , Tools version status .

Connect-VIServer -Server VM-VC.TEST.COM  -User  root -Password ********

Get-VM |

Select @{N=”VMName”; E={$_.Name}},

@{N=”HardwareVersion”; E={$_.Extensiondata.Config.Version}},

@{N=”ToolsVersion”; E={$_.Extensiondata.Config.Tools.ToolsVersion}},

@{N=”ToolsStatus”; E={$_.Extensiondata.Summary.Guest.ToolsStatus}},

@{N=”ToolsVersionStatus”; E={$_.Extensiondata.Summary.Guest.ToolsVersionStatus}},

@{N=”ToolsRunningStatus”; E={$_.Extensiondata.Summary.Guest.ToolsRunningStatus}}

| Export-Csv  C:\vmdata.csv

Output 

VMName HardwareVersion ToolsVersion ToolsStatus ToolsVersionStatus ToolsRunningStatus
TEST-VM-01 vmx-11 10249 toolsOld guestToolsNeedUpgrade guestToolsRunning
TEST-VM-01 vmx-11 2147483647 toolsOk guestToolsUnmanaged guestToolsRunning
TEST-VM-01 vmx-11 10282 toolsOk guestToolsCurrent guestToolsRunning
TEST-VM-01 vmx-11 10249 toolsOld guestToolsNeedUpgrade guestToolsRunning
TEST-VM-01 vmx-08 2147483647 toolsOk guestToolsUnmanaged guestToolsRunning
TEST-VM-01 vmx-11 10249 toolsNotRunning guestToolsNeedUpgrade guestToolsNotRunning
TEST-VM-01 vmx-10 9354 toolsOld guestToolsNeedUpgrade guestToolsRunning
Rajesh Radhakrishnan

Share
Published by
Rajesh Radhakrishnan

Recent Posts

NAKIVO Backup & Replication v10.8 Released With New Features

Nakivo has released its new Backup and Replication solution Nakivo v10.8, which includes support for…

2 years ago

Oracle Cloud VMware Solution and Features

Oracle Cloud VMware Solution (OCVS) provides a customer-managed, native VMware-based cloud environment hosted in Oracle…

2 years ago

Vinchin Backup and Recovery Review

Vinchin is a professional provider of data protection solutions for enterprises. It provides a series…

2 years ago

VMware Cloud Disaster Recovery (VCDR) Solution Deployment And Configuration Part 2

In my previous blog post, I have explained about VMware Cloud Disaster Recovery (VCDR) Onboarding and…

2 years ago

How to Deploy vRNI Cloud With VMC on AWS

vRealize Network Insight helps you build an optimized, highly available, and secure network infrastructure across…

2 years ago

This SysAdmin Day, WIN with Hornetsecurity!

Can you believe it's here again? SysAdmin Day is back, and with it comes endless gratitude…

2 years ago