I have command:
Get-VM | Where-Object {$_.NetworkAdapters.NetworkName -eq 'VLAN180'} | Select-Object Name, {$_.Guest.IPAddress}
return the following data:
ss4.work {10.8.0.6, fe80::dd2a:a7d4:7de0:e64d, fe80::fd66:1962:4009:501a, 192.168.180.18}
I need the ip value - 192.168.180.*, but the problem is that $_.Guest.IPAddress it PSCustomObject and I do not understand how to use it.