below is taking huge time (as oppose to faster query with get-view ) & then gives error
Get-View -ViewType HostSystem -property @("Name", "Summary.Hardware.OtherIdentifyingInfo[7].IdentifierValue") | Select-object Name,@{N="Tag";E={$_.Summary.Hardware.OtherIdentifyingInfo[7].IdentifierValue}}
Anyone can suggest what is wrong in above ?
thanks
Try like this
Get-View -ViewType HostSystem -property @("Name", "Summary.Hardware.OtherIdentifyingInfo") |
Select-object Name,@{N="Tag";E={$_.Summary.Hardware.OtherIdentifyingInfo[7].IdentifierValue}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try like this
Get-View -ViewType HostSystem -property @("Name", "Summary.Hardware.OtherIdentifyingInfo") |
Select-object Name,@{N="Tag";E={$_.Summary.Hardware.OtherIdentifyingInfo[7].IdentifierValue}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
