Vmware tools status

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Geraldo Quezada Geraldo Quezada 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40086
    Profile photo of Venkata Kalyan
    Venkata Kalyan
    Participant

    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

    #40113
    Profile photo of Geraldo Quezada
    Geraldo Quezada
    Participant

    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}}
    
    #40168
    Profile photo of Venkata Kalyan
    Venkata Kalyan
    Participant

    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

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.