View Only
  • 1.  Find linux box

    Posted May 17, 2019 02:09 PM

    Hi Gurus

    has anyone here have a PScli that I can use to find Linux box and its adapter type , that I can use.


  • 2.  RE: Find linux box

    Posted May 17, 2019 02:11 PM

    Do you the VMware Tools installed on your VMs?
    Which adapter, storage or network?

  • 3.  RE: Find linux box

    Posted May 18, 2019 02:11 AM


    The vast vm has VM tools install and I am looking at vmxnet3 adapter.

    I have windows vm and Linux vm on my cluster and I would like to run a ps so I can come up with a list of only Linux and what type of adapter they have

    Thanks L.

  • 4.  RE: Find linux box
    Best Answer

    Posted May 18, 2019 05:09 AM

    Try something like this

    Get-VM |

    where{$_.ExtensionData.GuestFamily -ne 'windowsGuest'} |

    Select Name,


       @{N='vNICType';E={(Get-NetworkAdapter -VM $_).Type -join '|'}}

    If you don't want to rely on the VMware Tools and you are sure that all your VMs were configured with the correct GuestId, you could do

    Get-VM |

    where{$_.GuestId -notmatch 'windows'} |

    Select Name,


       @{N='vNICType';E={(Get-NetworkAdapter -VM $_).Type -join '|'}}

  • 5.  RE: Find linux box

    Posted May 17, 2019 02:12 PM

    Please explain better what you mean. No idea what you're asking for.