3 Replies Latest reply on Aug 4, 2015 12:25 PM by amarcy

    Get-View Guest.Hostname property returning null

    amarcy Novice

      Can anyone tell me why this one liner only returns the VM name and not the Guest Host name?

      Get-View -ViewType VirtualMachine -Property Name -Filter @{"Guest.HostName" = ".*$prompt.*"} | Select @{N='VM Name';E={$_.Name}}, @{N='Guest Host Name';E={$_.Guest.HostName}} | ft -wrap -auto

       

      Thanks!