Vmware tools status

Welcome Forums General PowerShell Q&A Vmware tools status

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
2 years, 4 months ago.

  • Author
    Posts
  • #40086

    Participant
    Points: 0
    Rank: Member

    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

    Participant
    Points: 0
    Rank: Member

    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}}
    

The topic ‘Vmware tools status’ is closed to new replies.