Are you sure about the NetworkName.
Does
Get-vm -VM $_."Server Name" | Get-NetworkAdapter | Select NetworkName
actually display that value ?
Are you sure about the NetworkName.
Does
Get-vm -VM $_."Server Name" | Get-NetworkAdapter | Select NetworkName
actually display that value ?