Hi,
I am looking for script which will give me all VM’s which are having vmware tools outofdate & hardware version.
I wrote a script, but not able to get hardware version:
Get-VM |
Where-Object {$.ExtensionData.Guest.ToolsStatus -ne “toolsOk”} |
Select-Object -Property Name,
@{N=“ToolsStatus”;E={$.ExtensionData.Guest.ToolsStatus}},
@{N=“OSFullName”;E={$_.Guest.OSFullName}}
Can someone please help me on this?
-Kalyan
Just will need to add the Version property to get the hardware version to your select-object
Get-VM |
Where-Object {$_.ExtensionData.Guest.ToolsStatus -ne "toolsOk"} |
Select-Object -Property Name, Version,
@{N="ToolsStatus";E={$_.ExtensionData.Guest.ToolsStatus}},
@{N="OSFullName";E={$_.Guest.OSFullName}}
Hi Thanks,
That small change made it work. But the result, it is showing “Version - Unknown”
It is displaying only if it is V8.
-Klayan